compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java failed with below error:
----------System.err:(22/1908)*----------
java.nio.file.FileSystemException: C:\\cygwin\\tmp\\myagent5874446242395813948.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.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:270)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1173)
at compiler.jsr292.RedefineMethodUsedByMultipleMethodHandles.redefineFoo(RedefineMethodUsedByMultipleMethodHandles.java:126)
at compiler.jsr292.RedefineMethodUsedByMultipleMethodHandles.main(RedefineMethodUsedByMultipleMethodHandles.java:87)
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:832)
JavaTest Message: Test threw exception: java.nio.file.FileSystemException: C:\\cygwin\\tmp\\myagent5874446242395813948.jar: The process cannot access the file because it is being used by another process.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.nio.file.FileSystemException: C:\\cygwin\\tmp\\myagent5874446242395813948.jar: The process cannot access the file because it is being used by another process.
----------System.err:(22/1908)*----------
java.nio.file.FileSystemException: C:\\cygwin\\tmp\\myagent5874446242395813948.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.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:270)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1173)
at compiler.jsr292.RedefineMethodUsedByMultipleMethodHandles.redefineFoo(RedefineMethodUsedByMultipleMethodHandles.java:126)
at compiler.jsr292.RedefineMethodUsedByMultipleMethodHandles.main(RedefineMethodUsedByMultipleMethodHandles.java:87)
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:832)
JavaTest Message: Test threw exception: java.nio.file.FileSystemException: C:\\cygwin\\tmp\\myagent5874446242395813948.jar: The process cannot access the file because it is being used by another process.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.nio.file.FileSystemException: C:\\cygwin\\tmp\\myagent5874446242395813948.jar: The process cannot access the file because it is being used by another process.
- duplicates
-
JDK-8204521 compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java fails trying to delete temp file
- Resolved