Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8223748

JDK 13 ea b20 version string returns null as embedded

XMLWordPrintable

    • b20
    • 13
    • generic
    • generic

      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


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: