-
Bug
-
Resolution: Fixed
-
P4
-
16
-
b09
As previously reported in JDK-8231097:
this test seems to write to places it shouldn't. If you run this test locally under jtreg the second execution will fail due to:
STDERR:
java.nio.file.FileAlreadyExistsException: /scratch/users/daholme/jdk-dev2/open/test/hotspot/jtreg/JTwork/classes/runtime/cds/appcds/DirClasspathTest.d/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Super.class
at java.base/sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:571)
at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258)
at java.base/java.nio.file.Files.copy(Files.java:1299)
at DirClasspathTest.main(DirClasspathTest.java:121)
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:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:832)
You have to delete the directory to allow the test to work again. The test should be writing into its own temporary working directory, not the location where jtreg puts the compiled class files. Or else delete the directory first.
this test seems to write to places it shouldn't. If you run this test locally under jtreg the second execution will fail due to:
STDERR:
java.nio.file.FileAlreadyExistsException: /scratch/users/daholme/jdk-dev2/open/test/hotspot/jtreg/JTwork/classes/runtime/cds/appcds/DirClasspathTest.d/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Super.class
at java.base/sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:571)
at java.base/sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:258)
at java.base/java.nio.file.Files.copy(Files.java:1299)
at DirClasspathTest.main(DirClasspathTest.java:121)
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:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:832)
You have to delete the directory to allow the test to work again. The test should be writing into its own temporary working directory, not the location where jtreg puts the compiled class files. Or else delete the directory first.
- relates to
-
JDK-8231097 [TESTBUG] runtime/cds/appcds/DirClasspathTest.java can fail with a mapping error
- Resolved