ID: Q194771
The information in this article applies to:
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"
You can avoid this problem by resolving all duplicate method names before attempting to override an inherited member.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
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.
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
Solution Type : kbpending
Last Reviewed: March 16, 1999