BUG: VJ6 Crash Trying to Override an Inherited Member

ID: Q194771


The information in this article applies to:
  • Microsoft Visual J++, version 6.0


SYMPTOMS

Under some unusual circumstances, Visual J++ version 6.0 crashes when trying to override a method. You may see an Application Error or General Protection Fault, for example, this error:

An application error has occurred and an application error log is being generated.

DEVENV.exe

Exception: access violation (0xc0000005),Address: 0x71049e21"


RESOLUTION

You can avoid this problem by resolving all duplicate method names before attempting to override an inherited member.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a new project, and select Console Application for the project type.


  2. Open the source file (Class1.java).


  3. In the Class Outline pane, expand Class1 and select the main(String[]) method.


  4. Right-click the main method and select Copy.


  5. Right-click the main method again and select "paste." This will add a second declaration of the main() method. Note that the Task List shows an error message saying "Redeclaration of member 'main'".


  6. In the Class Outline pane, expand the "Inherited members" list, right- click the "clone()" method, and select "Override Method".


Visual J++ 6.0 stops at this point with the above error.


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:

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

http://support.microsoft.com/support/java/
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Adele Hunter, Microsoft Corporation.

Additional query words:

Keywords : kbVJ600bug
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: November 16, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.