BUG: ClassView Does Not Fully Support Interfaces (161709)



The information in this article applies to:

  • Microsoft Visual J++ 1.0
  • Microsoft Visual J++ 1.1

This article was previously published under Q161709

SYMPTOMS

The ClassView pane in Visual J++ is not fully aware of Java interfaces. As a result, it displays incomplete or invalid properties, or generates invalid Java code when the right-click context menus are used to add code.

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

Add the following interface definition to an AppWizard-generated Java applet:
   interface Test{}
				
Save the changes to the file, and view the ClassView tab of the Project Workspace window. The "new" interface Test appears in the project "classes" display. In the ClassView pane, right-click "interface Test" to open the context menu, then select properties. The properties dialog box lists a "Base Class" of java.lang.Object. This is incorrect because interfaces do not have base classes.

If the interface extends through several other interfaces, the properties dialog box shows only the first interface in the extends list as the "Base Class."

Similarly, if you use the right-click context menu to Add a non-final variable or a non-abstract class method to interface Test, invalid Java code is generated that can cause various compile-time errors.

REFERENCES

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

Modification Type:MinorLast Reviewed:8/25/2005
Keywords:kbArtTypeINF kbbug kbui KB161709