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 254071 - java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextNode
Summary: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.n...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-02 12:18 UTC by IrianR
Modified: 2015-08-05 01:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218921


Attachments
stacktrace (1.34 KB, text/plain)
2015-08-02 12:18 UTC, IrianR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description IrianR 2015-08-02 12:18:33 UTC
Build: NetBeans IDE 8.1 Beta (Build 201507302201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows 7

User Comments:
IrianR: Was doing code folding tests and changing the folding defaults when i got this.

I was fiddling with specific Java editor settings to reset them to default state, the went to the all languages setting to also reset them to default, the exception popped up when I pressed the Apply button.




Stacktrace: 
java.util.ConcurrentModificationException
   at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
   at java.util.HashMap$ValueIterator.next(HashMap.java:1458)
   at org.netbeans.modules.editor.fold.ui.FoldOptionsController.detectIsChanged(FoldOptionsController.java:306)
   at org.netbeans.modules.editor.fold.ui.FoldOptionsController.preferenceChange(FoldOptionsController.java:215)
   at sun.reflect.GeneratedMethodAccessor48.invoke(GeneratedMethodAccessor48.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Comment 1 IrianR 2015-08-02 12:18:36 UTC
Created attachment 155122 [details]
stacktrace
Comment 2 Svata Dedic 2015-08-03 08:10:24 UTC
Fixed, proper synchronization needed as options are saved in a dedicated thread and nested pref events are fired in another (and UI works in yet another one). jet-main#2a6be940884f
Comment 3 Quality Engineering 2015-08-05 01:20:01 UTC
Integrated into 'main-silver', will be available in build *201508050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2a6be940884f
User: Svata Dedic <sdedic@netbeans.org>
Log: #254071: synchronized access to panel preferences