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

java/nio/file/Files/CopyAndMove.java failed with java.nio.file.FileAlreadyExistsException intermittently

    Details

    • Subcomponent:
    • Resolved In Build:
      b71
    • CPU:
      generic
    • OS:
      windows

      Backports

        Description

        This happened on Windows 7 X86. java.nio.file.FileAlreadyExistsException was thrown when trying to move files.

        Please refer to the following test output:
        ----------System.err:(20/1585)*----------
        java.nio.file.FileAlreadyExistsException: C:\\Users\\AURORA~1.SC1\\AppData\\Local\\Temp\\name3300389595325988396\\sourcedir-2002621301 -> .\\name221331787958862067\\target493586993
        at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:81)
        at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
        at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387)
        at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
        at java.nio.file.Files.move(Files.java:1395)
        at CopyAndMove.moveAndVerify(CopyAndMove.java:197)
        at CopyAndMove.testMove(CopyAndMove.java:408)
        at CopyAndMove.main(CopyAndMove.java:67)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:502)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:745)

        JavaTest Message: Test threw exception: java.nio.file.FileAlreadyExistsException: C:\\Users\\AURORA~1.SC1\\AppData\\Local\\Temp\\name3300389595325988396\\sourcedir-2002621301 -> .\\name221331787958862067\\target493586993
        JavaTest Message: shutting down test

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bpb Brian Burkhalter
                  Reporter:
                  xiaofeya Xiaofeng Yang
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: