- 
    Bug 
- 
    Resolution: Fixed
- 
     P4 P4
- 
    11, 17, 21, 25, 26
- 
        b05
- 
        x86_64
- 
        windows
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8369398 | 25.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b02 | 
| JDK-8369645 | 21.0.10-oracle | Anawesha Khuntia | P4 | Resolved | Fixed | b02 | 
| JDK-8370085 | 21.0.10 | Goetz Lindenmaier | P4 | Resolved | Fixed | master | 
| JDK-8369819 | 17.0.18-oracle | Anawesha Khuntia | P4 | Resolved | Fixed | b02 | 
| JDK-8370233 | 17.0.18 | Goetz Lindenmaier | P4 | Resolved | Fixed | master | 
| JDK-8369824 | 11.0.30-oracle | Anawesha Khuntia | P4 | Resolved | Fixed | b02 | 
com/sun/net/httpserver/Test12.java
Here's a snippet from the log file:
#section:main
----------messages:(8/393)----------
command: main -Djava.net.preferIPv6Addresses=true Test12
reason: User specified action: run main/othervm -Djava.net.preferIPv6Addresses=true Test12
started: Fri Jun 13 19:26:51 UTC 2025
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.httpserver,java.logging
Process id: 29576
finished: Fri Jun 13 19:26:54 UTC 2025
elapsed time (seconds): 2.965
----------configuration:(3/58)----------
Boot Layer
add modules: jdk.httpserver java.logging
----------System.out:(1/12)----------
Test12: OK
----------System.err:(17/1792)*----------
java.nio.file.FileSystemException: C:\\sb\\prod\\1749842502\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part3\\scratch\\1\\com.sun.net.httpserver-Test12-2659162053669711980.tmp: 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:269)
at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
at java.base/java.nio.file.Files.delete(Files.java:1052)
at Test12.main(Test12.java:113)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1474)
JavaTest Message: Test threw exception: java.nio.file.FileSystemException: C:\\sb\\prod\\1749842502\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part3\\scratch\\1\\com.sun.net.httpserver-Test12-2659162053669711980.tmp: 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:\\sb\\prod\\1749842502\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part3\\scratch\\1\\com.sun.net.httpserver-Test12-2659162053669711980.tmp: The process cannot access the file because it is being used by another process
----------rerun:(47/6076)*----------
This error message indicates a temp file race:
java.nio.file.FileSystemException: C:\\sb\\prod\\1749842502\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part3\\scratch\\1\\com.sun.net.httpserver-Test12-2659162053669711980.tmp: The process cannot access the file because it is being used by another process
- backported by
- 
                    JDK-8369398 com/sun/net/httpserver/Test12.java appears to have a temp file race -           
- Resolved
 
-         
- 
                    JDK-8369645 com/sun/net/httpserver/Test12.java appears to have a temp file race -           
- Resolved
 
-         
- 
                    JDK-8369819 com/sun/net/httpserver/Test12.java appears to have a temp file race -           
- Resolved
 
-         
- 
                    JDK-8369824 com/sun/net/httpserver/Test12.java appears to have a temp file race -           
- Resolved
 
-         
- 
                    JDK-8370085 com/sun/net/httpserver/Test12.java appears to have a temp file race -           
- Resolved
 
-         
- 
                    JDK-8370233 com/sun/net/httpserver/Test12.java appears to have a temp file race -           
- Resolved
 
-         
- caused by
- 
                    JDK-8343074 test/jdk/com/sun/net/httpserver/docs/test1/largefile.txt could be generated -           
- Resolved
 
-         
- relates to
- 
                    JDK-8361106 [TEST] com/sun/net/httpserver/Test9.java fails with java.nio.file.FileSystemException -           
- In Progress
 
-         
- links to
- 
                     Commit(master)
        openjdk/jdk17u-dev/05713515 Commit(master)
        openjdk/jdk17u-dev/05713515
- 
                     Commit(master)
        openjdk/jdk21u-dev/bdd77102 Commit(master)
        openjdk/jdk21u-dev/bdd77102
- 
                     Commit(master)
        openjdk/jdk25u/a95aa607 Commit(master)
        openjdk/jdk25u/a95aa607
- 
                     Commit(master)
        openjdk/jdk/e1681c48 Commit(master)
        openjdk/jdk/e1681c48
- 
                     Review(master)
        openjdk/jdk17u-dev/4055 Review(master)
        openjdk/jdk17u-dev/4055
- 
                     Review(master)
        openjdk/jdk21u-dev/2330 Review(master)
        openjdk/jdk21u-dev/2330
- 
                     Review(master)
        openjdk/jdk25u/266 Review(master)
        openjdk/jdk25u/266
- 
                     Review(master)
        openjdk/jdk/25820 Review(master)
        openjdk/jdk/25820