Skip to content

Commit

Permalink
Limit 5.x compatibility in tests to JDK12 or older
Browse files Browse the repository at this point in the history
  • Loading branch information
big-guy committed Oct 17, 2019
1 parent 3d32e85 commit bd168bb
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -106,6 +106,11 @@ private boolean worksWith(JavaVersion javaVersion) {
return javaVersion.compareTo(JavaVersion.VERSION_1_7) >= 0 && javaVersion.compareTo(JavaVersion.VERSION_1_10) <= 0;
}

// 5.x only supports up to Java 12, 5.6 was the last release
if (isSameOrOlder("5.7")) {
return javaVersion.compareTo(JavaVersion.VERSION_1_8) >= 0 && javaVersion.compareTo(JavaVersion.VERSION_12) <= 0;
}

return javaVersion.compareTo(JavaVersion.VERSION_1_8) >= 0;
}

Expand Down

0 comments on commit bd168bb

Please sign in to comment.