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

javax/swing/JFileChooser/FileSystemView/WindowsDefaultIconSizeTest.java creates tmp file in src dir

XMLWordPrintable

        javax/swing/JFileChooser/FileSystemView/WindowsDefaultIconSizeTest.java fails if the test source tree is read-only as it tries to create a temporary file there instead of in the provided jtreg scratch dir.

        Stacktrace:
        java.lang.RuntimeException: Unexpected error while creating the test file: Access is denied
        at WindowsDefaultIconSizeTest.test(WindowsDefaultIconSizeTest.java:70)
        at WindowsDefaultIconSizeTest.main(WindowsDefaultIconSizeTest.java:43)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:573)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1576)

              honkar Harshitha Onkar
              erikj Erik Joelsson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: