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 6063

Summary: ConcurrentModificationException from parser.
Product: java Reporter: Jesse Glick <jglick>
Component: UnsupportedAssignee: Jesse Glick <jglick>
Status: CLOSED FIXED    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2000-03-29 21:01:32 UTC
I do not know how to reproduce this; it did not have any obvious effect except the stack trace. This in 1009 under NT/1.3.

Exception occurred in request processor:
java.util.ConcurrentModificationException
        at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:535)
        at java.util.LinkedList$ListItr.next(LinkedList.java:476)
        at com.netbeans.developer.modules.loaders.java.ElementsCollection$Initializer.updateContent(ElementsCollection.java:288)
        at com.netbeans.developer.modules.loaders.java.ClassElementImpl.updateImpl(ClassElementImpl.java:89)
        at com.netbeans.developer.modules.loaders.java.ElementsCollection$Class.updateContent(ElementsCollection.java:767)
        at com.netbeans.developer.modules.loaders.java.SourceElementImpl$DataRef.doIt(SourceElementImpl.java:923)
        at com.netbeans.developer.modules.loaders.java.SourceElementImpl$DataRef.run(SourceElementImpl.java:830)
        at org.openide.util.Task.run(Task.java:123)
        at org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:564)

[Svata] It seems as if source was changed through OpenAPIs at the same time the parser was refreshing the hierarchy from the underlying text.
Programmatic access to element collections has never been properly synchronized; it is already on my `todo` list.
Comment 1 Marek Grummich 2000-07-25 09:20:59 UTC
Priority is changed to P4 (normal).
Comment 2 Quality Engineering 2003-07-02 17:17:10 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.