Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: other-libs
    • Subcomponent:
    • Resolved In Build:
      b105

      Description

      A simple JDK-specific Java API to parse, validate, and compare version strings. A rough estimate of this API may be found in the JEP 223 description (JDK-8061493).

        Issue Links

          Activity

          Hide
          chegar Chris Hegarty added a comment -
          Am I correct in thinking that sun/misc/Version.java.template can be removed once this change gets in?
          Otherwise, its functionality should moved to a more suitable internal package. I am raising this query
          in relation to JDK-8132928, JEP 260.
          Show
          chegar Chris Hegarty added a comment - Am I correct in thinking that sun/misc/Version.java.template can be removed once this change gets in? Otherwise, its functionality should moved to a more suitable internal package. I am raising this query in relation to JDK-8132928 , JEP 260.
          Hide
          iris Iris Clark added a comment -
          jdk.Version isn't a complete replacement for sun/misc/Version.java.template The former only provides a means to interpret version strings. Code which was using Version.java.template to access parts of the version string may be modified to use the new jdk.Version.

          According to my cursory search, there are 7 references to "sun.misc.Version" in our source:

               hotspot/src/share/vm/prims/jvm.h
               hotspot/src/share/vm/runtime/thread.cpp
               jdk/src/java.base/share/classes/sun/misc/VM.java
               jdk/src/java.base/share/native/include/jvm.h
               jdk/src/java.base/share/classes/java/lang/System.java
               jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/AboutDialog.java
               jdk/test/sun/misc/Version/Version.java

          I suspect that the reference in module jdk.jconsole is the interesting candidate for replacement. This change is not included in the changeset for this issue.

          Additional functionality provided by Version.java.template will need to be moved.
          Show
          iris Iris Clark added a comment - jdk.Version isn't a complete replacement for sun/misc/Version.java.template The former only provides a means to interpret version strings. Code which was using Version.java.template to access parts of the version string may be modified to use the new jdk.Version. According to my cursory search, there are 7 references to "sun.misc.Version" in our source:      hotspot/src/share/vm/prims/jvm.h      hotspot/src/share/vm/runtime/thread.cpp      jdk/src/java.base/share/classes/sun/misc/VM.java      jdk/src/java.base/share/native/include/jvm.h      jdk/src/java.base/share/classes/java/lang/System.java      jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/AboutDialog.java      jdk/test/sun/misc/Version/Version.java I suspect that the reference in module jdk.jconsole is the interesting candidate for replacement. This change is not included in the changeset for this issue. Additional functionality provided by Version.java.template will need to be moved.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/rev/6b11a2e9fa4f
          User: mchung
          Date: 2016-02-03 03:12:48 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/rev/6b11a2e9fa4f User: mchung Date: 2016-02-03 03:12:48 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/7adef1c3afd5
          User: mchung
          Date: 2016-02-03 03:12:54 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/7adef1c3afd5 User: mchung Date: 2016-02-03 03:12:54 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/rev/6b11a2e9fa4f
          User: lana
          Date: 2016-02-10 21:54:43 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/rev/6b11a2e9fa4f User: lana Date: 2016-02-10 21:54:43 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/7adef1c3afd5
          User: lana
          Date: 2016-02-10 21:55:24 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/7adef1c3afd5 User: lana Date: 2016-02-10 21:55:24 +0000

            People

            • Assignee:
              iris Iris Clark
              Reporter:
              iris Iris Clark
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: