Details
-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b107
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);
}
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);
}
Attachments
Issue Links
- blocks
-
JDK-8150162 Move sun.misc.Version to a truly internal package
-
- Resolved
-
- relates to
-
JDK-8144062 Move jdk.Version to java.lang.Runtime.Version
-
- Closed
-