Karm / mandrel-integration-tests

Integration tests for GraalVM and its Mandrel distribution. Runs Quarkus, Helidon and Micronaut applications and small targeted reproducers. The focus is solely on native-image utility and compilation of Java applications into native executables.
Apache License 2.0
5 stars 3 forks source link

JDK17: @DisabledOnJre(JRE.JAVA_11) is a poor solution #83

Closed Karm closed 2 years ago

Karm commented 2 years ago

Annotation

    @DisabledOnJre(JRE.JAVA_11)

Does not cover our container use case. For instance, it should be perfectly fine to run the test suite with JDK 11 while it would use javac, java, jar and native-image from JDK 17 based Mandrel builder image.

Solution:

Adapt the current annotation:

    @IfMandrelVersion(min = "21.3", inContainer = true)

to constrain JDK version too, e.g.

    @IfMandrelVersion(min = "21.3", minJDK="17", inContainer = true)