Comparing r6.0.2...r6.0.3 · junit-team/junit-framework (original) (raw)

Commits on Feb 8, 2026

  1. Reliably support JRE.OTHER with @⁠EnabledOnJre and @⁠DisabledOnJre
    In JUnit Jupiter 5.12, I added support for arbitrary Java versions with
    JRE conditions; however, I accidentally introduced a regression
    regarding support for JRE.OTHER. Specifically, prior to this commit,
    JRE.OTHER no longer worked reliably when used with @⁠EnabledOnJre or
    @⁠DisabledOnJre.
    To address that, this commit revises the logic in
    JRE.isCurrentVersion(int) to account for situations where the supplied
    version value is Integer.MAX_VALUE (representing @⁠EnabledOnJre(OTHER)
    or @⁠DisabledOnJre(OTHER)), and the current version of the JVM is
    greater than the version of the last JRE.JAVA_* enum constant — for
    example, when running on Java 27 and the last JRE enum constant is
    JAVA_26.
    See #3930
    Closes #5341
    @sbrannen
    Configuration menu
    Browse the repository at this point in the history