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

System.getProperty( "java.version" ) renders incomplete version info

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      FULL PRODUCT VERSION :
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+129-jigsaw-nightly-h5332-20160730)
      Java HotSpot(TM) Server VM (build 9-ea+129-jigsaw-nightly-h5332-20160730, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      OS independent

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      irrelevant

      A DESCRIPTION OF THE PROBLEM :
      Shouldn't System.getProperty( "java.version" ) render the complete version string?

      e.g.: "9-ea+129-jigsaw-nightly-h5332-20160730" instead of "9-ea"


      REGRESSION. Last worked in version 8u112

      ADDITIONAL REGRESSION INFORMATION:
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+129-jigsaw-nightly-h5332-20160730)
      Java HotSpot(TM) Server VM (build 9-ea+129-jigsaw-nightly-h5332-20160730, mixed mode)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      System.getProperty( "java.version" )

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      9-ea+129-jigsaw-nightly-h5332-20160730
      ACTUAL -
      9-ea


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      assert "9-ea+129-jigsaw-nightly-h5332-20160730".equals( System.getProperty( "java.version" ) );

      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            • Assignee:
              psonal Pallavi Sonal (Inactive)
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: