Skip to content

Commit

Permalink
Merge pull request #43544 from zakkak/2024-09-26-fix-reflection-it
Browse files Browse the repository at this point in the history
Update and enable testLambdaCapturing test for GraalVM/Mandrel 23.1 for JDK 21
  • Loading branch information
gsmet authored Sep 28, 2024
2 parents 1ff7c69 + 43f1fb6 commit cb455a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ public static final class Version implements Comparable<Version> {
static final Version VERSION_21_3_0 = new Version("GraalVM 21.3.0", "21.3.0", Distribution.GRAALVM);
public static final Version VERSION_23_0_0 = new Version("GraalVM 23.0.0", "23.0.0", "17", Distribution.GRAALVM);
public static final Version VERSION_23_1_0 = new Version("GraalVM 23.1.0", "23.1.0", "21", Distribution.GRAALVM);
public static final Version VERSION_23_1_2 = new Version("GraalVM 23.1.2", "23.1.2", "21", Distribution.GRAALVM);
public static final Version VERSION_23_1_3 = new Version("GraalVM 23.1.3", "23.1.3", "21", Distribution.GRAALVM);
public static final Version VERSION_24_0_0 = new Version("GraalVM 24.0.0", "24.0.0", "22", Distribution.GRAALVM);
public static final Version VERSION_24_0_999 = new Version("GraalVM 24.0.999", "24.0.999", "22", Distribution.GRAALVM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ public void testTargetWithoutNested() {
}

@Test
@DisableIfBuiltWithGraalVMNewerThan(GraalVMVersion.GRAALVM_23_1_0)
public void testLambdaCapturingPre24_0() {
@DisableIfBuiltWithGraalVMNewerThan(GraalVMVersion.GRAALVM_23_1_2)
public void testLambdaCapturingPre23_1_3() {
// Starting with GraalVM 22.1 support Lambda functions serialization
// (see https://github.com/oracle/graal/issues/3756)
RestAssured.given().when().get("/reflection/lambda").then().body(startsWith("Comparator$$Lambda$"));
}

@Test
@DisableIfBuiltWithGraalVMOlderThan(GraalVMVersion.GRAALVM_24_0_0)
public void testLambdaCapturingPost23_1() {
// Starting with GraalVM 24.0 lambda class names match the ones from HotSpot
// (see https://github.com/oracle/graal/pull/7775)
@DisableIfBuiltWithGraalVMOlderThan(GraalVMVersion.GRAALVM_23_1_3)
public void testLambdaCapturingPost23_1_2() {
// Starting with GraalVM 23.1.3 lambda class names match the ones from HotSpot
// (see https://github.com/oracle/graal/pull/7775 and https://github.com/oracle/graal/commit/7d158e5c141e2f5c84f27095d8718189ab4953c2)
RestAssured.given().when().get("/reflection/lambda").then().body(startsWith("Comparator$$Lambda/"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import io.quarkus.deployment.pkg.steps.GraalVM;

public enum GraalVMVersion {
GRAALVM_23_1_0(GraalVM.Version.VERSION_23_1_0),
GRAALVM_23_1_2(GraalVM.Version.VERSION_23_1_2),
GRAALVM_23_1_3(GraalVM.Version.VERSION_23_1_3),
GRAALVM_24_0_0(GraalVM.Version.VERSION_24_0_0),
GRAALVM_24_0_999(GraalVM.Version.VERSION_24_0_999);

Expand Down

0 comments on commit cb455a3

Please sign in to comment.