8150168: jconsole AboutDialog should use the JDK specific Version API
authorchegar
Fri, 19 Feb 2016 07:55:05 +0000
changeset 36011 77231de79e04
parent 36010 8fe81891e76c
child 36012 2d47efae7da3
8150168: jconsole AboutDialog should use the JDK specific Version API Reviewed-by: alanb, iris
jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/AboutDialog.java
--- a/jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/AboutDialog.java	Thu Feb 18 13:41:11 2016 -0800
+++ b/jdk/src/jdk.jconsole/share/classes/sun/tools/jconsole/AboutDialog.java	Fri Feb 19 07:55:05 2016 +0000
@@ -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);
     }