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

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

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vlivanov Vladimir Ivanov
                Reporter:
                dzhou Dora Zhou
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: