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 - ConcurrentModificationException in Archive
Summary: ConcurrentModificationException in Archive
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.0
Hardware: Other Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 07:09 UTC by Jaroslav Tulach
Modified: 2011-05-03 05:26 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 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