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

compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java failed with java.nio.file.FileSystemException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 12
    • hotspot

      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.

            thartmann Tobias Hartmann
            qianqli Lily Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: