-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
13
ADDITIONAL SYSTEM INFORMATION :
Dell E7490, Windows 10, Oracle OpenJDK 13_20
A DESCRIPTION OF THE PROBLEM :
Starting with JDK-13_20, System.getProperty("java.version"), System.getProperty("java.vm.version"), and System.getProperty("java.runtime.version") all return strings that include "null". This was not the case in JDK-13_19 or earlier.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Call System.getProperty() and pass "java.version", "java.vm.version", or "java.runtime.version". See sample code below.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Results that don't include the word "null". When the below code is run on Oracle OpenJDK-13_19, the results are:
13-ea
13-ea+19
13-ea+19
When run on Oracle OpenJDK 12.0.1, the results are:
12
12+33
12+33
ACTUAL -
When the code below is run on Oracle OpenJDK-13_20, the results are:
13-null+20
13-null+20
13-null
---------- BEGIN SOURCE ----------
public class Main
{
public static void main(String[] args)
{
System.out.println(System.getProperty("java.version"));
System.out.println(System.getProperty("java.vm.version"));
System.out.println(System.getProperty("java.runtime.version"));
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Stick with JDK-13_19
FREQUENCY : always
Dell E7490, Windows 10, Oracle OpenJDK 13_20
A DESCRIPTION OF THE PROBLEM :
Starting with JDK-13_20, System.getProperty("java.version"), System.getProperty("java.vm.version"), and System.getProperty("java.runtime.version") all return strings that include "null". This was not the case in JDK-13_19 or earlier.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Call System.getProperty() and pass "java.version", "java.vm.version", or "java.runtime.version". See sample code below.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Results that don't include the word "null". When the below code is run on Oracle OpenJDK-13_19, the results are:
13-ea
13-ea+19
13-ea+19
When run on Oracle OpenJDK 12.0.1, the results are:
12
12+33
12+33
ACTUAL -
When the code below is run on Oracle OpenJDK-13_20, the results are:
13-null+20
13-null+20
13-null
---------- BEGIN SOURCE ----------
public class Main
{
public static void main(String[] args)
{
System.out.println(System.getProperty("java.version"));
System.out.println(System.getProperty("java.vm.version"));
System.out.println(System.getProperty("java.runtime.version"));
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Stick with JDK-13_19
FREQUENCY : always
- duplicates
-
JDK-8223627 jdk-13+20 bundle name contains null instead of ea
- Resolved
- relates to
-
JDK-8223464 Improve version string for Oracle CI builds
- Resolved