BUG: ClassView Incorrectly Allows Non-Abstract/Abstract Method

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

SYMPTOMS

ClassView allows you to add methods that use the abstract modifier to non- abstract classes. In Visual J++ 1.0 it also allows you to add methods that do not use the abstract modifier to interfaces. As a result, errors occur when you compile the source code. ClassView should not allow these scenarios.

RESOLUTION

Avoid adding methods that use ClassView in this manner.

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

In Visual J++ 1.0, 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. Use the context menu to add a non-abstract
   class method to the interface Test. Invalid Java code is generated that
   can cause various compile-time errors.

In either Visual J++ 1.0 or 1.1, add the following class definition to an AppWizard-generated Java applet:

   class Test1{}

   Save the changes to the file, and view the ClassView tab of the Project
   Workspace window. The "new" class Test1 appears in the project "classes"
   display. In the ClassView pane, right-click "class Test1" to open the
   context menu. Use the context menu to add an abstract class method to
   the class Test1. 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 page on the Microsoft Technical Support site:

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

Keywords          : kbui VJGenIss
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.