Skip to content

Commit

Permalink
Reject building with JDK-8 and 3.2.X SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpaljak committed Oct 15, 2024
1 parent 30c3dc2 commit d78f767
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions task/src/main/java/pro/javacard/ant/JCCap.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ private void compile() {
} else if (jdkver > 11 && !jckit.getVersion().isOneOf(V310, V320)) {
// JDK 17+ minimal class file target is 1.7, but need 1.6
throw new HelpingBuildException(String.format("Can't use JDK %d with JavaCard kit %s (use JDK 11)", jdkver, jckit.getVersion()));
} else if (jdkver == 8 && jckit.getVersion().isOneOf(V320)) {
// 24.1 requires JDK-11 to run (while 24.0 can work with JDK-8, encourage updating)
throw new HelpingBuildException(String.format("Can't use JDK %d with JavaCard kit %s (use JDK 11 or 17)", jdkver, jckit.getVersion()));
}

j.setTarget(javaVersion);
Expand Down

0 comments on commit d78f767

Please sign in to comment.