Skip to content

Commit

Permalink
Merge pull request quarkusio#43716 from zakkak/2024-10-05-fix-42893
Browse files Browse the repository at this point in the history
Handle GraalVM 23.1 dev builds based on OpenJDK
  • Loading branch information
zakkak authored Oct 10, 2024
2 parents 7f22ff2 + 55751ae commit 7a09a40
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,20 @@ public void testGraalVMEA24DevVersionParser() {
assertThat(graalVMEA24Dev.javaVersion.update()).isEqualTo(0);
}

@Test
public void testGraalVM23_1CommunityVersionParser() {
final Version version = Version.of(Stream.of(("native-image 21.0.5-beta 2024-10-15\n"
+ "GraalVM Runtime Environment GraalVM CE 21.0.5-dev.beta+3.1 (build 21.0.5-beta+3-ea)\n"
+ "Substrate VM GraalVM CE 21.0.5-dev.beta+3.1 (build 21.0.5-beta+3-ea, serial gc)")
.split("\\n")));
assertThat(version.toString().contains(GRAALVM.name()));
assertThat(version.getVersionAsString()).isEqualTo("23.1-dev");
assertThat(version.javaVersion.toString()).isEqualTo("21.0.5-beta+3-ea");
assertThat(version.javaVersion.feature()).isEqualTo(21);
assertThat(version.javaVersion.interim()).isEqualTo(0);
assertThat(version.javaVersion.update()).isEqualTo(5);
}

@Test
public void testGraalVMVersionsOlderThan() {
assertOlderThan("GraalVM Version 19.3.6 CE", "GraalVM Version 20.2.0 (Java Version 11.0.9)");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public static class Version implements Comparable<Version> {
// Temporarily work around https://github.com/quarkusio/quarkus/issues/36246,
// till we have a consensus on how to move forward in
// https://github.com/quarkusio/quarkus/issues/34161
protected static final Map<String, String> GRAAL_MAPPING = Map.of("22", "24.0",
protected static final Map<String, String> GRAAL_MAPPING = Map.of(
"21", "23.1",
"22", "24.0",
"23", "24.1",
"24", "24.2",
"25", "25.0");
Expand Down

0 comments on commit 7a09a40

Please sign in to comment.