Details
-
Bug
-
Resolution: Fixed
-
P3
-
7u343, 8u333, 11.0.1, 11.0.15.1-oracle, 11.0.15.1.1-oracle, 11.0.16, 13.0.12, 15.0.8, 17.0.3.1-oracle, 17.0.4, 18.0.1.1
-
- amazon-interest
- azul-interest
- dcsaw
- jdk11u-fix-request
- jdk11u-fix-yes
- jdk13u-fix-request
- jdk13u-fix-yes
- jdk15u-fix-request
- jdk15u-fix-yes
- jdk17u-fix-request
- jdk17u-fix-yes
- jdk18u-fix-SQE-OK
- jdk18u-fix-request
- jdk18u-fix-yes
- jdk8u-fix-request
- jdk8u-fix-yes
- regression
- release-note=yes
- reproducer-yes
- webbug
-
b06
-
b20
-
x86_64
-
windows
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8286218 | 18u-cpu | Brian Burkhalter | P3 | Resolved | Fixed | master |
JDK-8285512 | 18.0.2 | Brian Burkhalter | P3 | Resolved | Fixed | b05 |
JDK-8285607 | 18.0.1.1 | Brian Burkhalter | P3 | Closed | Fixed | b02 |
JDK-8285597 | 17.0.4-oracle | Prajwal Kumaraswamy | P3 | Resolved | Fixed | b05 |
JDK-8285787 | 17.0.4 | Matthias Baesken | P3 | Resolved | Fixed | b01 |
JDK-8285744 | 17.0.3.1.1-oracle | Prajwal Kumaraswamy | P3 | Resolved | Fixed | b01 |
JDK-8285608 | 17.0.3.1-oracle | Prajwal Kumaraswamy | P3 | Closed | Fixed | b02 |
JDK-8285681 | 15.0.8 | Sergey Bylokhov | P3 | Resolved | Fixed | b02 |
JDK-8285813 | 13.0.12 | Yuri Nesterenko | P3 | Resolved | Fixed | b02 |
JDK-8285580 | 11.0.16-oracle | Prajwal Kumaraswamy | P3 | Resolved | Fixed | b05 |
JDK-8285682 | 11.0.16 | Sergey Bylokhov | P3 | Resolved | Fixed | b01 |
JDK-8285750 | 11.0.15.1.1-oracle | Prajwal Kumaraswamy | P3 | Resolved | Fixed | b01 |
JDK-8285609 | 11.0.15.1-oracle | Prajwal Kumaraswamy | P3 | Closed | Fixed | b02 |
JDK-8285957 | openjdk8u342 | Sergey Bylokhov | P3 | Resolved | Fixed | b01 |
JDK-8285581 | 8u341 | Prajwal Kumaraswamy | P3 | Resolved | Fixed | b04 |
JDK-8285606 | 8u333 | Prajwal Kumaraswamy | P3 | Closed | Fixed | b02 |
JDK-8286248 | 7u361 | Prajwal Kumaraswamy | P3 | Resolved | Fixed | b01 |
JDK-8285634 | 7u343 | Prajwal Kumaraswamy | P3 | Closed | Fixed | b02 |
JDK-8289475 | openjdk7u351 | Olga Mikhaltcova | P3 | Resolved | Fixed | b01 |
Description
with java update cpuapr2022 (8u331 11.0.15 and 18.0.1) undertow is broken for windows.
this code:
https://github.com/xnio/xnio/blob/3.x/api/src/main/java/org/xnio/channels/Channels.java#L1098
return new FileOutputStream("NUL:").getChannel();
is broken after this "improvement" (ticket JDK-8278356 is not public, why?)
https://github.com/openjdk/jdk/commit/395bb5b7f97f2549da89641257fe56712856b49d "8278356: Improve file creation"
2022-04-21 11:06:26,989 [XNIO-10 task-10] {} ERROR io.undertow.request.io UT005090: Unexpected failure
java.lang.NoClassDefFoundError: Could not initialize class org.xnio.channels.Channels
REGRESSION : Last worked in version 8
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run test program below.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No Exception.
ACTUAL -
Exception in thread "main" java.io.FileNotFoundException: Invalid file path
---------- BEGIN SOURCE ----------
import java.io.FileOutputStream;
public class NulFile {
public static void main(String[] args) throws Exception {
new FileOutputStream("NUL:");
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
set system property: -Djdk.io.File.enableADS=true
FREQUENCY : always
Attachments
Issue Links
- backported by
-
JDK-8285512 cannot open file "NUL:"
- Resolved
-
JDK-8285580 cannot open file "NUL:"
- Resolved
-
JDK-8285581 cannot open file "NUL:"
- Resolved
-
JDK-8285597 cannot open file "NUL:"
- Resolved
-
JDK-8285681 cannot open file "NUL:"
- Resolved
-
JDK-8285682 cannot open file "NUL:"
- Resolved
-
JDK-8285744 cannot open file "NUL:"
- Resolved
-
JDK-8285750 cannot open file "NUL:"
- Resolved
-
JDK-8285787 cannot open file "NUL:"
- Resolved
-
JDK-8285813 cannot open file "NUL:"
- Resolved
-
JDK-8285957 cannot open file "NUL:"
- Resolved
-
JDK-8286218 cannot open file "NUL:"
- Resolved
-
JDK-8286248 cannot open file "NUL:"
- Resolved
-
JDK-8289475 cannot open file "NUL:"
- Resolved
-
JDK-8285606 cannot open file "NUL:"
- Closed
-
JDK-8285607 cannot open file "NUL:"
- Closed
-
JDK-8285608 cannot open file "NUL:"
- Closed
-
JDK-8285609 cannot open file "NUL:"
- Closed
-
JDK-8285634 cannot open file "NUL:"
- Closed
- csr for
-
JDK-8285500 cannot open file "NUL:"
- Closed
- duplicates
-
JDK-8285446 Java: FileOutputStream("NUL:") not working in 8u331
- Closed
-
JDK-8285499 new FileOutputStream("NUL:") shows "Invalid path or file name"
- Closed
-
JDK-8285966 java.io.File.toURL doesn't tolerate file:\C:\dev\ which breaks xjc on Windows after CPU22_04
- Resolved
-
JDK-8285446 Java: FileOutputStream("NUL:") not working in 8u331
- Closed
-
JDK-8285499 new FileOutputStream("NUL:") shows "Invalid path or file name"
- Closed
- relates to
-
JDK-8285511 Revisit Windows paths and ADS streams
- Open
-
JDK-8285523 Improve test java/io/FileOutputStream/OpenNUL.java
- Resolved
- links to
-
Commit openjdk/jdk7u/cb07ad2c
-
Commit openjdk/jdk8u-dev/607b14e2
-
Commit openjdk/jdk11u-dev/dbe5f175
-
Commit openjdk/jdk13u-dev/cef0df69
-
Commit openjdk/jdk15u-dev/a6be0e09
-
Commit openjdk/jdk17u-dev/b751b3c1
-
Commit openjdk/jdk18u/313b033b
-
Commit openjdk/jdk/03cbb48e
-
Review openjdk/jdk7u/9
-
Review openjdk/jdk8u-dev/49
-
Review openjdk/jdk11u-dev/1047
-
Review openjdk/jdk13u-dev/346
-
Review openjdk/jdk15u-dev/198
-
Review openjdk/jdk17u-dev/358
-
Review openjdk/jdk18u/106
-
Review openjdk/jdk/8373