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.
Summary: | java.util.ConcurrentModificationException at org.openide.util.WeakSet$WeakSetIterator.checkModcount | ||
---|---|---|---|
Product: | projects | Reporter: | martinhavle <martinhavle> |
Component: | Generic Projects UI | Assignee: | Andrey Yamkovoy <kaktus> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | RANDOM, THREAD |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=149306 | ||
Issue Type: | DEFECT | Exception Reporter: | 149306 |
Attachments: |
stacktrace
Proposed fix |
Description
martinhavle
2009-04-10 16:11:13 UTC
Created attachment 79904 [details]
stacktrace
Actually this issue not reproducible for me but anyway the static set should be synchronized. Created attachment 79959 [details]
Proposed fix
If you always access it using 'synchronized (all)' then using Collections.synchronizedSet is superfluous. (Generally I find Collections.synchronized* not very useful because you so often want to do more than one operation at a time to the collection.) I will remove Collections.synchronizedSet from the patch. Fixed in the core-main Integrated into 'main-golden', will be available in build *200904151401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2b1d0560aa74 User: Andrey Yamkovoy <kaktus@netbeans.org> Log: Fix for issue #162415 - java.util.ConcurrentModificationException at org.openide.util.WeakSet$WeakSetIterator.checkModcount |