BUG: Parameter Types and Values Not Displayed in Call Stack (157897)
The information in this article applies to:
- Microsoft Visual J++ 1.0
- Microsoft Visual J++ 1.1
This article was previously published under Q157897 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:
Modification Type: | Minor | Last Reviewed: | 8/25/2005 |
---|
Keywords: | kbBug kbDebug kbide KB157897 |
---|
|