Skip to content

Commit

Permalink
GH-483 JDK 20-ea support added
Browse files Browse the repository at this point in the history
  • Loading branch information
thurka committed Apr 18, 2023
1 parent 21e314b commit 43d8c90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/jfr.streaming/manifest.mf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ OpenIDE-Module: org.graalvm.visualvm.jfr.streaming
OpenIDE-Module-Install: org/graalvm/visualvm/jfr/streaming/Installer.class
OpenIDE-Module-Java-Dependencies: Java > 17
OpenIDE-Module-Localizing-Bundle: org/graalvm/visualvm/jfr/streaming/Bundle.properties
OpenIDE-Module-Specification-Version: 1.1
OpenIDE-Module-Specification-Version: 1.2
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class JFRStream {
public static JFRStream getFor(Application app) throws IOException {
Jvm jvm = JvmFactory.getJVMFor(app);
String ver = jvm.getJavaVersion();
if (isJavaVersion(ver, "17") || isJavaVersion(ver, "18") || isJavaVersion(ver, "19")) {
if (isJavaVersion(ver, "17") || isJavaVersion(ver, "18") || isJavaVersion(ver, "19") || isJavaVersion(ver, "20")) {
JmxModel jmxModel = JmxModelFactory.getJmxModelFor(app);
if (jmxModel != null && jmxModel.getConnectionState() == JmxModel.ConnectionState.CONNECTED) {
return new JFRStream(jmxModel);
Expand Down

0 comments on commit 43d8c90

Please sign in to comment.