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 77209 - Deadlock in the ClassPath.getRoots()
Summary: Deadlock in the ClassPath.getRoots()
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Classpath (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 76149 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-01 09:36 UTC by Tomas Zezula
Modified: 2006-08-29 21:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Zezula 2006-06-01 09:36:26 UTC
The ClassPath.getRoots calls a SPI interface within a synchronized block which
causes a deadlock in some cases.
Comment 1 Tomas Zezula 2006-06-01 10:08:35 UTC
Checking in src/org/netbeans/api/java/classpath/ClassPath.java;
/cvs/java/api/src/org/netbeans/api/java/classpath/ClassPath.java,v  <-- 
ClassPath.java
new revision: 1.36; previous revision: 1.35
done
Comment 2 Andrei Badea 2006-06-01 10:32:35 UTC
I think it would be good to integrate this in release55. What does QE think?
Comment 3 Tomas Zezula 2006-06-19 20:02:41 UTC
*** Issue 76149 has been marked as a duplicate of this issue. ***
Comment 4 Andrei Badea 2006-06-22 14:52:28 UTC
The fix avoids calling ClassPathImplementation.getResources() inside a
synchronized block in getRoots() and doesn't seem to break anything. I think it
can be safely integrated in release55.
Comment 5 Tomas Zezula 2006-06-23 13:22:33 UTC
Integrated into release55:

Checking in src/org/netbeans/api/java/classpath/ClassPath.java;
/cvs/java/api/src/org/netbeans/api/java/classpath/ClassPath.java,v  <-- 
ClassPath.java
new revision: 1.33.28.1; previous revision: 1.33
done