Microsoft KB Archive/194771

= BUG: VJ6 Crash Trying to Override an Inherited Member =

Article ID: 194771

Article Last Modified on 8/25/2005

-

APPLIES TO


 * Microsoft Visual J++ 6.0 Standard Edition

-



This article was previously published under Q194771



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.



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.

