Skip to content

Commit ead75b3

Browse files
committed
JDK 10 support added
1 parent 7e97835 commit ead75b3

File tree

13 files changed

+55
-15
lines changed

13 files changed

+55
-15
lines changed

visualvm/application/manifest.mf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ OpenIDE-Module: com.sun.tools.visualvm.application/0
55
OpenIDE-Module-Layer: com/sun/tools/visualvm/application/resources/layer.xml
66
OpenIDE-Module-Install: com/sun/tools/visualvm/application/Installer.class
77
OpenIDE-Module-Localizing-Bundle: com/sun/tools/visualvm/application/resources/Bundle.properties
8-
OpenIDE-Module-Specification-Version: 1.9
8+
OpenIDE-Module-Specification-Version: 1.10
99

visualvm/application/src/com/sun/tools/visualvm/application/jvm/DefaultJvm.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public boolean is19() {
6464
return false;
6565
}
6666

67+
public boolean is100() {
68+
return false;
69+
}
70+
6771
public boolean isAttachable() {
6872
return false;
6973
}

visualvm/application/src/com/sun/tools/visualvm/application/jvm/Jvm.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@ public boolean is19() {
9696
return false;
9797
}
9898

99+
/**
100+
* Tests if target JVM is JRE 10.
101+
* @return <CODE>true</CODE> if JVM is JRE 10, <CODE>false</CODE> otherwise
102+
*
103+
* @since VisualVM 1.4.1
104+
*/
105+
public boolean is100() {
106+
// default implementation for backward compatibility
107+
return false;
108+
}
109+
99110
/**
100111
* Tests if VisualVM can attach to target JVM via
101112
* <a href=http://download.oracle.com/javase/6/docs/technotes/guides/attach/index.html>Attach API</a>.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
build.xml.data.CRC32=ff5c27c4
1+
build.xml.data.CRC32=84e0b446
22
build.xml.script.CRC32=25884fdd
33
build.xml.stylesheet.CRC32=[email protected]
44
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
55
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6-
nbproject/build-impl.xml.data.CRC32=ff5c27c4
6+
nbproject/build-impl.xml.data.CRC32=84e0b446
77
nbproject/build-impl.xml.script.CRC32=63c7509b
88
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]

visualvm/jvm/nbproject/project.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<compile-dependency/>
1313
<run-dependency>
1414
<release-version>0</release-version>
15-
<specification-version>1.9</specification-version>
15+
<specification-version>1.10</specification-version>
1616
</run-dependency>
1717
</dependency>
1818
<dependency>

visualvm/jvm/src/com/sun/tools/visualvm/jvm/JVMImpl.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,14 @@ public boolean is19() {
221221
return false;
222222
}
223223

224+
public boolean is100() {
225+
String ver = getJavaVersion();
226+
if (ver != null && (ver.startsWith("10"))) { // NOI18N
227+
return true;
228+
}
229+
return false;
230+
}
231+
224232
public boolean isDumpOnOOMEnabled() {
225233
if (isDumpOnOOMEnabled == null) {
226234
AttachModel attach = getAttach();

visualvm/jvmstat/src/com/sun/tools/visualvm/jvmstat/JvmJvmstatModelProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ public JvmJvmstatModel createModelFor(Application app) {
8080
else if (javaVersion.startsWith("1.9.")) model = new JvmJvmstatModel_8(app,jvmstat); // NOI18N
8181
// JVM 9
8282
else if (javaVersion.startsWith("9")) model = new JvmJvmstatModel_8(app,jvmstat); // NOI18N
83+
// JVM 10
84+
else if (javaVersion.startsWith("10")) model = new JvmJvmstatModel_8(app,jvmstat); // NOI18N
8385
}
8486
if (model == null) { // still not recognized, fallback to JvmJvmstatModel_5
8587
LOGGER.log(Level.WARNING, "Unrecognized java.vm.version " + vmVersion); // NOI18N

visualvm/launcher/visualvm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ case "`uname`" in
211211
'"-J-Xdock:icon=$basedir/etc/visualvm.icns"' \
212212
--branding visualvm \
213213
--clusters '"$visualvm_clusters"' \
214+
--laf com.apple.laf.AquaLookAndFeel \
214215
${visualvm_default_options} \
215216
'"$@"'
216217
;;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
build.xml.data.CRC32=fee5938e
1+
build.xml.data.CRC32=476375e9
22
build.xml.script.CRC32=03a7511e
33
build.xml.stylesheet.CRC32=[email protected]
44
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
55
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6-
nbproject/build-impl.xml.data.CRC32=fee5938e
6+
nbproject/build-impl.xml.data.CRC32=476375e9
77
nbproject/build-impl.xml.script.CRC32=6c1a4403
88
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]

visualvm/profiler/nbproject/project.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<compile-dependency/>
1313
<run-dependency>
1414
<release-version>0</release-version>
15-
<specification-version>1.9</specification-version>
15+
<specification-version>1.10</specification-version>
1616
</run-dependency>
1717
</dependency>
1818
<dependency>

0 commit comments

Comments
 (0)