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 252887

Summary: java.util.ConcurrentModificationException at java.util.Vector$Itr.checkForComodification
Product: platform Reporter: _ tboudreau <tboudreau>
Component: JDK ProblemsAssignee: Antonin Nebuzelsky <anebuzelsky>
Status: NEW ---    
Severity: normal CC: jocke, Tristan
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 192844
Attachments: stacktrace

Description _ tboudreau 2015-06-09 05:15:03 UTC
Build: NetBeans IDE Dev (Build NetBeans-742-on-20150508)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Linux

User Comments:
tboudreau: Open project




Stacktrace: 
java.util.ConcurrentModificationException
   at java.util.Vector$Itr.checkForComodification(Vector.java:1184)
   at java.util.Vector$Itr.next(Vector.java:1137)
   at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.cancelRunnables(BasicDirectoryModel.java:340)
   at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.cancelRunnables(BasicDirectoryModel.java:346)
   at javax.swing.plaf.basic.BasicDirectoryModel.validateFileCache(BasicDirectoryModel.java:135)
   at javax.swing.plaf.basic.BasicDirectoryModel.propertyChange(BasicDirectoryModel.java:69)
Comment 1 _ tboudreau 2015-06-09 05:15:05 UTC
Created attachment 154116 [details]
stacktrace
Comment 2 Jesse Glick 2016-11-19 21:38:09 UTC
Seems like a JRE bug to me. Calling `JFileChooser.setSelectedFiles` from the EQ thread, should be safe.