Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8214168

BasicDirectoryModel.cancelRunnables() throws ConcurrentModificationException for windows OS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 12
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      12
    • OS:
      windows

      Description

      JAVA Version:
      java version "12-ea" 2019-03-19
      Java(TM) SE Runtime Environment (build 12-ea+18)
      Java HotSpot(TM) 64-Bit Server VM (build 12-ea+18, mixed mode, sharing)

      OS: Windows 10 10.0 (amd64)

      Description:
      Test sanity/client/SwingSet/src/FileChooserDemoTest.java was run as a part of Same binary runs where this issue was seen intermittently (2/1000 itterations).

      Error:
      test FileChooserDemoTest.test("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"): failure
      java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at org.netbeans.jemmy.ClassReference.invokeMethod(ClassReference.java:134)
      at org.netbeans.jemmy.ClassReference.startApplication(ClassReference.java:97)
      at org.netbeans.jemmy.ClassReference.startApplication(ClassReference.java:75)
      at FileChooserDemoTest.test(FileChooserDemoTest.java:129)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:835)
      Caused by: java.util.ConcurrentModificationException
      at java.base/java.util.Vector$Itr.checkForComodification(Vector.java:1320)
      at java.base/java.util.Vector$Itr.next(Vector.java:1276)
      at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.cancelRunnables(BasicDirectoryModel.java:391)
      at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.cancelRunnables(BasicDirectoryModel.java:397)
      at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel.validateFileCache(BasicDirectoryModel.java:157)
      at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel.propertyChange(BasicDirectoryModel.java:78)
      at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
      at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
      at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
      at java.desktop/java.awt.Component.firePropertyChange(Component.java:8728)
      at java.desktop/javax.swing.JFileChooser.setFileFilter(JFileChooser.java:1461)
      at com.sun.swingset3.demos.filechooser.FileChooserDemo.initUI(FileChooserDemo.java:352)
      at com.sun.swingset3.demos.filechooser.FileChooserDemo.<init>(FileChooserDemo.java:223)
      at com.sun.swingset3.demos.filechooser.FileChooserDemo.main(FileChooserDemo.java:210)
      ... 37 more




        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kaddepalli Krishna Addepalli (Inactive)
                Reporter:
                gpatil Gauri Patil
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: