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.
Created attachment 120018 [details] The patch to fix the problem A client of mine got this Exception while using Schliemann java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(Unknown Source) at java.util.HashMap$EntryIterator.next(Unknown Source) at java.util.HashMap$EntryIterator.next(Unknown Source) at org.netbeans.modules.languages.FeatureList.collectFeatures(FeatureList.java:123) at org.netbeans.modules.languages.FeatureList.getFeatures(FeatureList.java:105) at org.netbeans.modules.languages.FeatureList.getFeature(FeatureList.java:110) at org.netbeans.modules.languages.ParserManagerImpl.parse(ParserManagerImpl.java:340) at org.netbeans.modules.languages.ParserManagerImpl.access$200(ParserManagerImpl.java:90) at org.netbeans.modules.languages.ParserManagerImpl$2.run(ParserManagerImpl.java:222) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968) I made a quick patch, unfortunately I had no chance to test it, but it is very simple and should work. I just added synchronized to the methods that modify the lists inside the FeatureList.
basically I synchronized these methods: void add (Feature feature) Feature getFeature (String featureName) void collectFeatures(List result, String featureName) List<Feature> getFeatures (String featureName, String id) void evaluate ( State state, List<ASTItem> path, Map<String,Set<ASTEvaluator>> evaluatorsMap )
The problem is still present in 7.1