This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: 1. create an interface e.g. I with some methods 2. create a class which implements the interface 3. implement all methods of the interface 4. delete all methods of the interface form the class source 5. invoke Tools menu
Created attachment 17802 [details] ioe stacktrace
It went from CorrectJavaDocAction.enable() method, JMIElementCookie holds the element, which is no longer valid (was deleted). Reassigning to Honza.
CorrectJavaDocAction should definitely check if the element is valid but the root of this issue is that JavaEditor sets the active node of an invalid element. I suspect JMManager.getTransactionMutex().addPriorityThread(); in JavaEditorComponent.createNode.
fixed javadoc part of the issue in /cvs/javadoc/src/org/netbeans/modules/javadoc/comments/CorrectJavaDocAction.java new revision: 1.10; previous revision: 1.9 Now it is necessary JavaEditorComponent would select a new valid element's node as active for current offset when it becomes available (after reparse).
OK, fixed in JavaEditor. Checking in JavaEditor.java; /cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v <-- JavaEditor.java new revision: 1.178; previous revision: 1.177 done
verified