-
Bug
-
Resolution: Fixed
-
P3
-
21, 22
-
b19
-
x86_64
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8338392 | 21.0.5 | Aleksey Shipilev | P3 | Resolved | Fixed | b04 |
The following test failed in the JDK22 CI:
java/nio/file/Files/CopyAndMove.java
Here's a snippet from the log file:
#section:main
----------messages:(6/235)----------
command: main CopyAndMove
reason: User specified action: run main/othervm CopyAndMove
started: Wed Sep 27 07:47:57 UTC 2023
Mode: othervm [/othervm specified]
finished: Wed Sep 27 07:48:00 UTC 2023
elapsed time (seconds): 2.939
----------configuration:(0/0)----------
----------System.out:(1/48)----------
Seed from RandomFactory = 5732842295462496703L
----------System.err:(27/2299)*----------
dir1: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038 (NTFS)
dir2: .\\name7465159200941705506 (NTFS)
dir3: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038 (NTFS)
java.nio.file.AccessDeniedException: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038\\target1760060153
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
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.newByteChannel(WindowsFileSystemProvider.java:234)
at java.base/java.nio.file.Files.newByteChannel(Files.java:379)
at PassThroughFileSystem$PassThroughProvider.newByteChannel(PassThroughFileSystem.java:323)
at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:482)
at java.base/java.nio.file.Files.newOutputStream(Files.java:227)
at java.base/java.nio.file.Files.copy(Files.java:3145)
at java.base/java.nio.file.CopyMoveHelper.copyToForeignTarget(CopyMoveHelper.java:147)
at java.base/java.nio.file.Files.copy(Files.java:1307)
at CopyAndMove.copyAndVerify(CopyAndMove.java:663)
at CopyAndMove.testCopyFileToFile(CopyAndMove.java:755)
at CopyAndMove.main(CopyAndMove.java:104)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1570)
JavaTest Message: Test threw exception: java.nio.file.AccessDeniedException: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038\\target1760060153
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.nio.file.AccessDeniedException: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038\\target1760060153
----------rerun:(41/6362)*----------
java/nio/file/Files/CopyAndMove.java
Here's a snippet from the log file:
#section:main
----------messages:(6/235)----------
command: main CopyAndMove
reason: User specified action: run main/othervm CopyAndMove
started: Wed Sep 27 07:47:57 UTC 2023
Mode: othervm [/othervm specified]
finished: Wed Sep 27 07:48:00 UTC 2023
elapsed time (seconds): 2.939
----------configuration:(0/0)----------
----------System.out:(1/48)----------
Seed from RandomFactory = 5732842295462496703L
----------System.err:(27/2299)*----------
dir1: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038 (NTFS)
dir2: .\\name7465159200941705506 (NTFS)
dir3: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038 (NTFS)
java.nio.file.AccessDeniedException: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038\\target1760060153
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
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.newByteChannel(WindowsFileSystemProvider.java:234)
at java.base/java.nio.file.Files.newByteChannel(Files.java:379)
at PassThroughFileSystem$PassThroughProvider.newByteChannel(PassThroughFileSystem.java:323)
at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:482)
at java.base/java.nio.file.Files.newOutputStream(Files.java:227)
at java.base/java.nio.file.Files.copy(Files.java:3145)
at java.base/java.nio.file.CopyMoveHelper.copyToForeignTarget(CopyMoveHelper.java:147)
at java.base/java.nio.file.Files.copy(Files.java:1307)
at CopyAndMove.copyAndVerify(CopyAndMove.java:663)
at CopyAndMove.testCopyFileToFile(CopyAndMove.java:755)
at CopyAndMove.main(CopyAndMove.java:104)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1570)
JavaTest Message: Test threw exception: java.nio.file.AccessDeniedException: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038\\target1760060153
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.nio.file.AccessDeniedException: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038\\target1760060153
----------rerun:(41/6362)*----------
- backported by
-
JDK-8338392 java/nio/file/Files/CopyAndMove.java failed with AccessDeniedException
- Resolved
- relates to
-
JDK-8073061 (fs) Files.copy(foo, bar, REPLACE_EXISTING) deletes bar even if foo is not readable
- Closed
- links to
-
Commit openjdk/jdk/6c6beba2
-
Commit(master) openjdk/jdk21u-dev/590715f4
-
Review openjdk/jdk/15991
-
Review(master) openjdk/jdk21u-dev/863
(1 links to)