Skip to content

Commit 503645c

Browse files
committed
hasSupportedJavaPlatforms() fixed for JDK 9+
1 parent ecb6996 commit 503645c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

visualvm/profiler/src/org/graalvm/visualvm/profiler/ProfilerSupport.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ public boolean hasSupportedJavaPlatforms() {
116116
String code = "jdk1" + (5 + i); // NOI18N
117117
if (supportsProfiling(code, 32) || supportsProfiling(code, 64)) return true;
118118
}
119+
String code = "jdk100"; // NOI18N
120+
if (supportsProfiling(code, 32) || supportsProfiling(code, 64)) return true;
121+
code = "jdk110"; // NOI18N
122+
if (supportsProfiling(code, 32) || supportsProfiling(code, 64)) return true;
123+
code = "jdk120"; // NOI18N
124+
if (supportsProfiling(code, 32) || supportsProfiling(code, 64)) return true;
119125
return false;
120126
}
121127

0 commit comments

Comments
 (0)