Skip to content

Commit

Permalink
Fix attach to IBM J9 JVMs
Browse files Browse the repository at this point in the history
  • Loading branch information
htreu committed Nov 25, 2019
1 parent 6c0abe6 commit a86a24f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public Class<? extends VirtualMachine> run() {
} catch (ClassNotFoundException exception) {
throw new IllegalStateException("Optional JNA dependency is not available", exception);
}
return System.getProperty("java.vm.vendor", "").toUpperCase(Locale.US).contains("J9")
return System.getProperty("java.vm.name", "").toUpperCase(Locale.US).contains("J9")
? ForOpenJ9.class
: ForHotSpot.class;

Expand Down

0 comments on commit a86a24f

Please sign in to comment.