BUG: Parameter Types and Values Not Displayed in Call Stack

ID: Q157897

The information in this article applies to:

SYMPTOMS

When a method has one or more overloaded versions and shows up as a called method in the Call Stack window, the type and value for the parameters are not displayed in some cases. It appears as though the method takes no parameters.

CAUSE

This occurs when the method being called is not defined as the first version of the overloaded method in the class definition. Take for example the following class definition:

   public class Test
   {
       int method(short s)
       {
           return s;
       }

       int method(int i)
       {
           return i;
       }
   }

If you were looking at a call to the second version of the method in the Call Stack window, it would appear as follows:

   method()

The type and value for the method is not displayed.

WORKAROUND

You could change the order of the method overloads so that the one you are currently debugging is first in the class definition.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/ 
   http://support.microsoft.com/support/java/ 

Keywords          : kbtool kbDebug kbide kbVJ 
Version           : 1.0 1.1
Platform          : WINDOWS
Issue type        : kbbug

Last Reviewed: January 31, 1998