compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java failed with java.nio.file.FileSystemException:
----------System.err:(22/1908)*----------
java.nio.file.FileSystemException: C:\\cygwin\\tmp\\myagent6314439281964860140.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:1180)
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:127)
at java.base/java.lang.Thread.run(Thread.java:835)
JavaTest Message: Test threw exception: java.nio.file.FileSystemException: C:\\cygwin\\tmp\\myagent6314439281964860140.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\\myagent6314439281964860140.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\\myagent6314439281964860140.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:1180)
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:127)
at java.base/java.lang.Thread.run(Thread.java:835)
JavaTest Message: Test threw exception: java.nio.file.FileSystemException: C:\\cygwin\\tmp\\myagent6314439281964860140.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\\myagent6314439281964860140.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