BUG: Interface Fields are not Displayed when Expanding Object

Last reviewed: January 29, 1998
Article ID: Q165548
The information in this article applies to:
  • Microsoft Visual J++, version 1.0, 1.1

SYMPTOMS

When debugging, if you expand an object that implements or inherits an interface, you do not see the fields of that interface anywhere in the object's expansion in the Locals or Watch windows.

RESOLUTION

To work around this problem you need to instantiate an object that implements or inherits, one and then you must cast it to the interface you want to see.

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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create and debug a Java project that contains the following two files:

       //[I1.java]
       interface I1
       {
          public static final int i = 7;
       }
    
       //[C1.java]
       public class C1 implements I1
       {
          public static void main(String args[])
          {
             C1 c1 = new C1();
             int i = 0;
             i = c1.i;
          }
       }
    
    

  2. Step past the line "i = c1.i.

  3. Expand c1 in Locals window, or enter and expand it in the Watch window.

Field "i" is not displayed in the expansion, even though it is really part of that object in terms of the data that it puts into local scope.

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          : kbprg VJDebug kbbuglist
Technology        : kbInetDev
Version           : 1.0 1.1
Platform          : WINDOWS
Issue type        : kbbug


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 29, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.