Bump max allowed bytecode version to 21

This commit is contained in:
Mikolaj Izdebski 2024-09-27 16:45:44 +02:00
commit dfe9493ee7

View file

@ -66,7 +66,7 @@ public class BytecodeVersionJarValidatorJP extends BytecodeVersionJarValidator {
for (var entry : classVersions.entrySet()) {
Path classPath = entry.getKey();
int version = entry.getValue().major();
int maxAllowedVersion = 17;
int maxAllowedVersion = 21;
int expected;
if (classPath.endsWith("module-info.class") || classPath.endsWith("package-info.class")) {