Skip to content

Commit

Permalink
Merge pull request #782 from htreu/j9_attach_ibm
Browse files Browse the repository at this point in the history
Fix attach to IBM J9 JVMs
  • Loading branch information
raphw authored Nov 26, 2019
2 parents dcbdc13 + 3a6a0ce commit 7af09d4
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 7af09d4

Please sign in to comment.