JDK-8150168 : jconsole AboutDialog should use the JDK specific Version API
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-02-18
  • Updated: 2016-02-25
  • Resolved: 2016-02-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b107Fixed
Related Reports
Blocks :  
Relates :  
Description
With the introduction of a JDK specific Version API, the jconsole AboutDialog should no longer
use sun.misc.Version. It should be be updated to use the new JDK specific API

diff --git a/src/jdk.jconsole/share/classes/sun/tools/jconsole/AboutDialog.java b/src/jdk.jconsole/share/classes/sun/tools/jconsole/AboutDialog.java
--- a/src/jdk.jconsole/share/classes/sun/tools/jconsole/AboutDialog.java
+++ b/src/jdk.jconsole/share/classes/sun/tools/jconsole/AboutDialog.java
@@ -34,8 +34,6 @@
 import javax.swing.border.*;
 import javax.swing.event.*;
 
-import static sun.misc.Version.jdkMinorVersion;
-
 import static java.awt.BorderLayout.*;
 import static sun.tools.jconsole.Utilities.*;
 
@@ -183,7 +181,7 @@
     }
 
     private static String getOnlineDocUrl() {
-        String version = Integer.toString(jdkMinorVersion());
+        String version = Integer.toString(jdk.Version.current().major());
         return Resources.format(Messages.HELP_ABOUT_DIALOG_USER_GUIDE_LINK_URL,
                                 version);
     }