Skip to content

Commit 339cb9f

Browse files
committed
JDK 13 support added
1 parent dafbe5b commit 339cb9f

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ public JvmJvmstatModel createModelFor(Application app) {
6666
else if (isJavaVersion(javaVersion,"11")) model = new JvmJvmstatModel_8(app,jvmstat); // NOI18N
6767
// JVM 12
6868
else if (isJavaVersion(javaVersion,"12")) model = new JvmJvmstatModel_8(app,jvmstat); // NOI18N
69+
// JVM 13
70+
else if (isJavaVersion(javaVersion,"13")) model = new JvmJvmstatModel_8(app,jvmstat); // NOI18N
6971
}
7072

7173
if (model == null) {

visualvm/profiler/src/com/sun/tools/visualvm/profiler/ProfilerSupport.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ public boolean hasSupportedJavaPlatforms() {
111111
if (supportsProfiling(code, 32) || supportsProfiling(code, 64)) return true;
112112
code = "jdk120"; // NOI18N
113113
if (supportsProfiling(code, 32) || supportsProfiling(code, 64)) return true;
114+
code = "jdk130"; // NOI18N
115+
if (supportsProfiling(code, 32) || supportsProfiling(code, 64)) return true;
114116
return false;
115117
}
116118

@@ -127,6 +129,8 @@ public String[][] getSupportedJavaPlatforms() {
127129
if (supportsProfiling(code, 32) || supportsProfiling(code, 64)) codesl.add(code);
128130
code = "jdk120"; // NOI18N
129131
if (supportsProfiling(code, 32) || supportsProfiling(code, 64)) codesl.add(code);
132+
code = "jdk130"; // NOI18N
133+
if (supportsProfiling(code, 32) || supportsProfiling(code, 64)) codesl.add(code);
130134

131135
String[] names = new String[codesl.size()];
132136
String[] codes = new String[codesl.size()];
@@ -175,6 +179,8 @@ static String getJavaName(String code) {
175179
return NbBundle.getMessage(ProfilerSupport.class, "STR_Java_platform_name", 11); // NOI18N
176180
if (Platform.JDK_120_STRING.equals(code))
177181
return NbBundle.getMessage(ProfilerSupport.class, "STR_Java_platform_name", 12); // NOI18N
182+
if (Platform.JDK_130_STRING.equals(code))
183+
return NbBundle.getMessage(ProfilerSupport.class, "STR_Java_platform_name", 13); // NOI18N
178184
throw new IllegalArgumentException("Unknown java code " + code); // NOI18N
179185
}
180186

visualvm/startup/src/com/sun/tools/visualvm/modules/startup/Bundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ ACSD_RejectButton=Click to reject license and exit
5353
OpenIDE-Module-Short-Description=VisualVM startup Module
5454

5555
VisualVMStartup_ErrorStartupCaption=Error Starting VisualVM
56-
VisualVMStartup_IncorrectVersionMsg=<html><br><b>You are running VisualVM using an unsupported Java version: {0}.</b><br><br>Please use JDK 8 to JDK 12 to run VisualVM. For information<br>about requirements and setup visit https://visualvm.github.io.<br><br><hr><i>Java: {1}<br>JVM: {2}<br>Location: {3}</i><br><br></html>
56+
VisualVMStartup_IncorrectVersionMsg=<html><br><b>You are running VisualVM using an unsupported Java version: {0}.</b><br><br>Please use JDK 8 to JDK 13 to run VisualVM. For information<br>about requirements and setup visit https://visualvm.github.io.<br><br><hr><i>Java: {1}<br>JVM: {2}<br>Location: {3}</i><br><br></html>
5757
VisualVMStartup_JreMsg=<html><br><b>You are running VisualVM using Java Runtime Environment (JRE).</b><br><br>Please use Java Development Kit (JDK) to run VisualVM. For information<br>about requirements and setup visit https://visualvm.github.io.<br><br><hr><i>Java: {0}<br>JVM: {1}<br>Location: {2}</i><br><br></html>

visualvm/startup/src/com/sun/tools/visualvm/modules/startup/VisualVMStartup.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ private static boolean isSupportedJava() {
9797
|| javaVersion.startsWith("1.9") || javaVersion.startsWith("9") // NOI18N
9898
|| javaVersion.startsWith("10") // NOI18N
9999
|| javaVersion.startsWith("11") // NOI18N
100-
|| javaVersion.startsWith("12"); // NOI18N
100+
|| javaVersion.startsWith("12") // NOI18N
101+
|| javaVersion.startsWith("13"); // NOI18N
101102
}
102103

103104
private static boolean isJDK() {

0 commit comments

Comments
 (0)