ARTEMIS-4223: make compatibility tests handle version qualifiers from some JDK builds, e.g -beta from some EAs.

This commit is contained in:
Robbie Gemmell 2023-03-29 12:53:45 +01:00
parent 21a5f0d2fa
commit e6fbdb1d55
1 changed files with 5 additions and 0 deletions

View File

@ -109,6 +109,11 @@ public class ClasspathBase {
if (dot != -1) {
version = version.substring(0, dot);
}
int dashIndex = version.indexOf("-");
if (dashIndex != -1) {
version = version.substring(0, dashIndex);
}
}
javaVersion = Integer.parseInt(version);
}