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.
I was removing file (opened in editor and modified) from explorer and attached IllegalStateException occured. My build is 200109200100.
Created attachment 2623 [details] IllegalStateException thrown.
CCing myself.
This is duplicate of a bug which just got assigned to me (P3, curiously) and which I reassigned to the editor. Can't remember the # offhand.
*** Issue 15813 has been marked as a duplicate of this issue. ***
Yarda and Vita discussed this and the resolution was, that this should be fixed in data systems by returning the node or by returning new dummy/void node. It is P1 because this exception occurs in many modules and we cannot guarantee that after isValid will be the dataobject valid - someone can still invalidate it in multithreading environment.
I will apply the change with *void node* as a hot fix, but this need wider discussion on openide-dev (I'll try to start it).
After some investigation I found that this problem was resolved by fixing issue #15795. In fact this wasn't caused by race conditions but missing validity check in ...editor.DORegistryListener.addSavedSourcesToParserDB (). It doesn't mean that throwing ISE from getNodeDelegate() called on invalidated DO shouldn't be changed in the future, but at least for now this restrictive approach helps us to discover problems caused by missing checks like this one. Problems casued by race conditions theoreticaly exist but they seem occur rarely if whatever (at least all similar issues were resolved by adding reasonable validity checks). *** This issue has been marked as a duplicate of 15795 ***
Vito, can you check also duplicated issue #15813. If it need to be fixed in EJB, let me know. Thanks.
Resolved for 3.4.x or earlier, no new info since then -> verified
Resolved for 3.4.x or earlier, no new info since then -> closing.