ARTEMIS-4223: make compatibility tests handle version qualifiers from some JDK builds, e.g -beta from some EAs.
This commit is contained in:
parent
21a5f0d2fa
commit
e6fbdb1d55
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue