Skip to content

Commit

Permalink
ARTEMIS-4223: make compatibility tests handle version qualifiers from…
Browse files Browse the repository at this point in the history
… some JDK builds, e.g -beta from some EAs.
  • Loading branch information
gemmellr committed Mar 29, 2023
1 parent 21a5f0d commit e6fbdb1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ public static final int getJavaVersion() {
if (dot != -1) {
version = version.substring(0, dot);
}

int dashIndex = version.indexOf("-");
if (dashIndex != -1) {
version = version.substring(0, dashIndex);
}
}
javaVersion = Integer.parseInt(version);
}
Expand Down

0 comments on commit e6fbdb1

Please sign in to comment.