Source: lintian Version: 2.5.80 Severity: normal Tags: patch Dear Maintainer,
OpenJDK 9 is now the default-jdk in Debian unstable, causing lintian to complain about the incompatible-java-bytecode-format. The attached patch increases the max-bytecode-version for 53 for Java 9, and adds the bytecode version for Java 10 as the new max existing. Kind Regards, Bas
diff --git a/checks/java.pm b/checks/java.pm index dafe53122..31c0238d8 100644 --- a/checks/java.pm +++ b/checks/java.pm @@ -98,7 +98,7 @@ sub run { or $mver > $MAX_BYTECODE->value('max-bytecode-existing-version')) { # First public major version was 45 (Java1), latest - # version is 52 (Java8). + # version is 53 (Java9). tag 'unknown-java-class-version', $jar_file, "($class -> $mver)"; # Skip the rest of this Jar. @@ -213,6 +213,7 @@ sub run { # 50 -> Java6 # 51 -> Java7 # 52 -> Java8 + # 53 -> Java9 my $bad = 0; # If the lowest version used is greater than the requested diff --git a/data/java/constants b/data/java/constants index c114857db..0c28b1e4a 100644 --- a/data/java/constants +++ b/data/java/constants @@ -4,11 +4,12 @@ # 45-49 -> Java1 # 50 -> Java6 # 51 -> Java7 -# 52 -> Java8 - Current max version in Debian unstable -# 53 -> Java9 -max-bytecode-version = 52 +# 52 -> Java8 +# 53 -> Java9 - Current max version in Debian unstable +# 54 -> Java10 +max-bytecode-version = 53 -max-bytecode-existing-version = 53 +max-bytecode-existing-version = 54 # The following should not change min-bytecode-version = 45