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.
NB 5.5 (200604270200), JDK 6.0 (b81) Steps to reproduce: - open web project (developed against non default JDK) - after open , invoke from popup menu "Resolve Reference Problem" - find appropriate JDK in the file chooser and push OK -> IDE gets frozen forever (see attached thread-dump)
Created attachment 30108 [details] thread-dump
MergedClassPathImplementation vs. ProjectManager.MUTEX fight again. Maybe dupe. Need to elaborate more.
I can't help myself, reproduced again 3 times / 3 attempts ;( BTW: I think this is stopper for Beta ...
I would wait for evaluation of 74204. It's very similar. If they decide to not to call ProjectManager.MUTEX under MergedClassPathImplementation lock a lot would be solved including this one.
Created attachment 30173 [details] Another thread-dump after second attempt to fix issue 74204
The bug isn't considered as Beta stopper. Therefore, I'm downgrading priority to P2.
Petr it isn't JDK 6.0 issue, as you tried to explain yesterday. I reproduced this with JDK 1.5.0_06 , NB Beta 5.5 (200605030200). This is P1 for me, user has to restart the IDE to continue in the work, therefore she can lost data, anyway as it's described in our Bugs Priority Guidelines : http://qa.netbeans.org/bugzilla/bug_priority_guidelines.html P1 : crash or deadlock - Reproducible, unavoidable crash or deadlock
I'll be working on it.... STARTED
The attached patch contains a fix for MergedClassPathImplementation. It's based on the one from Honza attached in issue 74204. There is also a simple test which deadlocks with the original patch. Marian also tested it and it works so far. Could anybody from javacore team (Honzo?) review the patch. I would then commit into release55 branch. Maybe we should also consider commiting it into trunk. Marian got the same deadlock there.
Created attachment 30884 [details] 75635-jmi-patch
Should be "forward-ported" to trunk? test/unit/MergedClassPathImplementationTest.java; 1.3.14.1 -> 1.3.14.1.2.1; MergedClassPathImplementation.java; 1.24.14.1 -> 1.24.14.1.2.1;
verified in NB 5.5 (200606130200) Martine, pleae backport this into the trunk as well, thanks in advance.
Martin, this is still reproducible in trunk. Do you plan to fix this in trunk as well ?
I will backport the fix into trunk.
Integrated into trunk: Checking in src/org/netbeans/modules/javacore/classpath/MergedClassPathImplementation.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/classpath/MergedClassPathImplementation.java,v <-- MergedClassPathImplementation.java new revision: 1.27; previous revision: 1.26 done Checking in test/unit/src/org/netbeans/modules/javacore/classpath/MergedClassPathImplementationTest.java; /cvs/java/javacore/test/unit/src/org/netbeans/modules/javacore/classpath/MergedClassPathImplementationTest.java,v <-- MergedClassPathImplementationTest.java new revision: 1.5; previous revision: 1.4 done
verified in NB dev(200606261800)