Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8314171 | 8u401 | Shivangi Gupta | P3 | Resolved | Fixed | b01 |
sun/net/www/protocol/jar/B6449504.java
After test was refactored inJDK-8181414, it fails (reproducible) at Windows platform:
----------System.err:(20/1464)*----------
java.nio.file.FileSystemException: C:\\jenkins\\workspace\\jdk10-jdk10\\testresults\\windows-x64\\jdk_test.tier2\\jtreg\\JTwork\\classes\\2\\sun\\net\\www\\protocol\\jar\\bar.jar: The process cannot access the file because it is being used by another process.
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:164)
at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:279)
at java.base/java.nio.file.Files.copy(Files.java:1287)
at B6449504.setup(B6449504.java:91)
at B6449504.main(B6449504.java:44)
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:563)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
at java.base/java.lang.Thread.run(Thread.java:844)
After test was refactored in
----------System.err:(20/1464)*----------
java.nio.file.FileSystemException: C:\\jenkins\\workspace\\jdk10-jdk10\\testresults\\windows-x64\\jdk_test.tier2\\jtreg\\JTwork\\classes\\2\\sun\\net\\www\\protocol\\jar\\bar.jar: The process cannot access the file because it is being used by another process.
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:164)
at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:279)
at java.base/java.nio.file.Files.copy(Files.java:1287)
at B6449504.setup(B6449504.java:91)
at B6449504.main(B6449504.java:44)
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:563)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
at java.base/java.lang.Thread.run(Thread.java:844)
- backported by
-
JDK-8314171 sun/net/www/protocol/jar/B6449504.java fails at Windows platform (after JDK-8181414)
- Resolved
- relates to
-
JDK-8181414 Refactor misc test/sun/net/www/protocol/jar shell tests to plain java tests
- Resolved