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

JAVA_VERSION, JAVA_FULL_VERSION confusion in release file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 9
    • tools
    • None

      There seems to be a mismatch between java command line version output and the contents of the release file. There is a strong expectation that java -fullversion reports the same string as JAVA_FULL_VERSION. Likewise with java -version and JAVA_VERSION. If there is a good reason for these to be different, please find better names for them.

       $ grep VERSION ~/jdk/jdk9/release; echo ---; ~/jdk/jdk9/bin/java -version; echo ---; ~/jdk/jdk9/bin/java -fullversion;
      JAVA_FULL_VERSION="9-ea"
      JAVA_VERSION="9"
      ---
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+167)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+167, mixed mode)
      ---
      java full version "9-ea+167"

        There are no Sub-Tasks for this issue.

            sundar Sundararajan Athijegannathan
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: