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 198196

Summary: ConcurrentModificationException in Archive
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: Module SystemAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: pnejedly
Priority: P3    
Version: 7.0   
Hardware: Other   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jaroslav Tulach 2011-04-29 07:09:15 UTC
java.util.ConcurrentModificationException: 
                  
   j.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373) 
   j.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:384) 
   org.netbeans.Archive.flushCaches(Archive.java:242) 
   org.netbeans.Stamps$Store.store(Stamps.java:580) 
   org.netbeans.Stamps$Worker.run(Stamps.java:744)
Comment 1 Jaroslav Tulach 2011-04-29 07:33:03 UTC
I guess following comment in the source is not fully accurate:

// no need to really synchronize on this collection, gathering flag
// is already cleared
for (String s:requests.keySet()) {
Comment 2 Jaroslav Tulach 2011-04-29 12:01:51 UTC
ergonomics#7428887a8b2c
Comment 3 Quality Engineering 2011-05-03 05:26:27 UTC
Integrated into 'main-golden', will be available in build *201105030000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7428887a8b2c
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #198196: Make sure nobody can modify requests when gathering is set to false