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.

Bug 49400 - IOE after remove of implemented methods
Summary: IOE after remove of implemented methods
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-22 12:31 UTC by ehucka
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ioe stacktrace (3.56 KB, text/plain)
2004-09-22 12:31 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2004-09-22 12:31:09 UTC
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
Comment 1 ehucka 2004-09-22 12:31:42 UTC
Created attachment 17802 [details]
ioe stacktrace
Comment 2 Pavel Flaska 2004-09-22 15:00:54 UTC
It went from CorrectJavaDocAction.enable() method, JMIElementCookie
holds the element, which is no longer valid (was deleted). Reassigning
to Honza.
Comment 3 Jan Pokorsky 2004-09-22 16:26:01 UTC
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.
Comment 4 Jan Pokorsky 2004-09-22 16:51:42 UTC
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).
Comment 5 Tomas Hurka 2004-09-24 17:03:31 UTC
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
Comment 6 ehucka 2004-11-08 14:42:05 UTC
verified