-
Bug
-
Resolution: Fixed
-
P3
-
7, 8, 11, 17, 18
-
b22
-
generic
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8321665 | 21.0.3-oracle | Ramesh Gangadhar | P3 | Resolved | Fixed | b01 |
JDK-8324895 | 21.0.3 | Amos SHI | P3 | Resolved | Fixed | b01 |
JDK-8322072 | 17.0.11-oracle | Ramesh Gangadhar | P3 | Resolved | Fixed | b01 |
JDK-8326132 | 17.0.11 | Amos SHI | P3 | Resolved | Fixed | b04 |
JDK-8322073 | 11.0.23-oracle | Ramesh Gangadhar | P3 | Resolved | Fixed | b01 |
JDK-8326777 | 11.0.23 | Amos SHI | P3 | Resolved | Fixed | b05 |
Other Windows versions throws IOException with message "Unable to create temporary file..." and won't create that file whenever try to create a temporary file with reserved/forbidden name. But in Windows 11 it's successfully creating that files, that's why test case fails.
It may be Windows 11 platform issue or some intended change in Windows 11.
This feature is implemented during JDK8 by task JDK-8013827.
Exception stack trace:
In test ReservedName, creating temp file with prefix, LPT1.package.zip, suffix, .temp, in dir, .\13438486632578688224
STDERR:
java.lang.RuntimeException: IOException is expected
at SpecialTempFile.test(SpecialTempFile.java:79)
at SpecialTempFile.main(SpecialTempFile.java:108)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
JavaTest Message: Test threw exception: java.lang.RuntimeException: IOException is expected
- backported by
-
JDK-8321665 java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11
- Resolved
-
JDK-8322072 java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11
- Resolved
-
JDK-8322073 java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11
- Resolved
-
JDK-8324895 java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11
- Resolved
-
JDK-8326132 java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11
- Resolved
-
JDK-8326777 java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11
- Resolved
- relates to
-
JDK-8269521 (fs) Add FileSystem method for determining whether name element is reserved name
- Closed
-
JDK-8275650 Problemlist java/io/File/createTempFile/SpecialTempFile.java for Windows 11
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/7bed7f1b
-
Commit openjdk/jdk17u-dev/d6ad2f17
-
Commit openjdk/jdk21u-dev/dead3334
-
Commit openjdk/jdk/4a142c3b
-
Review openjdk/jdk11u-dev/2510
-
Review openjdk/jdk17u-dev/2197
-
Review openjdk/jdk21u-dev/208
-
Review openjdk/jdk/15460