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.
Yesterday's sources+patches for issue #45801, JDK1.5.0-beta3-b57. The attached deadlock occurred.
Created attachment 16262 [details] Full Thread Dump.
Seems to be caused by code folding. In addition, the code folding is performing JMI calls in the AWT thread which should be avoided if possible.
The use of AWT is intentional as there are likely non-default fold settings so the async creation could cause flickering. However the rule of first locking the MDR then documents will require to post the fold creation to RP even in such case. I'll make the change and test the behavior.
Fixed in main trunk: Checking in src/org/netbeans/modules/editor/java/NbJavaFoldManager.java; /cvs/editor/src/org/netbeans/modules/editor/java/NbJavaFoldManager.java,v <-- NbJavaFoldManager.java new revision: 1.5; previous revision: 1.4
One more fix is necessary.
Additional fix in main trunk: Checking in src/org/netbeans/modules/editor/java/NbJavaFoldManager.java; /cvs/editor/src/org/netbeans/modules/editor/java/NbJavaFoldManager.java,v <-- NbJavaFoldManager.java new revision: 1.6; previous revision: 1.5
*** Issue 46528 has been marked as a duplicate of this issue. ***
.