8150168: jconsole AboutDialog should use the JDK specific Version API
Reviewed-by: alanb, iris
--- 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);
}