Source: lintian Version: 2.5.110 Severity: normal Tags: patch Dear Maintainer,
Now that openjdk-11 is the default JDK & JRE in unstable, the Java bytecode checks in lintian need to be updated again, as per the attached patch. Note that the bytecode version for the upcoming Java12 is assumed to be 56, but this may not be the case. max-bytecode-existing-version has not been incremented because of that. Kind Regards, Bas
>From 7d25cdc4c055b0c06962e8cc23a5ac0f8f4c7702 Mon Sep 17 00:00:00 2001 From: Bas Couwenberg <sebas...@xs4all.nl> Date: Mon, 29 Oct 2018 22:21:53 +0100 Subject: Update Java bytecode checks for openjdk-11. --- checks/java.desc | 2 +- checks/java.pm | 3 ++- data/java/constants | 7 ++++--- t/tests/java-class-format/debian/debian/rules | 4 ++-- t/tests/java-class-format/tags | 2 +- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/checks/java.desc b/checks/java.desc index 78e7e03f2..db1c491f0 100644 --- a/checks/java.desc +++ b/checks/java.desc @@ -91,7 +91,7 @@ Info: The package contains a Jar file with Java class files compiled for an for a newer version of Java than Lintian knows about. In the latter case, please file a bug against Lintian. . - The latest class version known by Lintian is Java10 (Major version 54). + The latest class version known by Lintian is Java11 (Major version 55). Tag: zip-parse-error Severity: normal diff --git a/checks/java.pm b/checks/java.pm index 1c2c97598..19e670fab 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 54 (Java10). + # version is 55 (Java11). tag 'unknown-java-class-version', $jar_file, "($class -> $mver)"; # Skip the rest of this Jar. @@ -215,6 +215,7 @@ sub run { # 52 -> Java8 # 53 -> Java9 # 54 -> Java10 + # 55 -> Java11 my $bad = 0; # If the lowest version used is greater than the requested diff --git a/data/java/constants b/data/java/constants index b08e0cfd4..ebb45af62 100644 --- a/data/java/constants +++ b/data/java/constants @@ -6,9 +6,10 @@ # 51 -> Java7 # 52 -> Java8 # 53 -> Java9 -# 54 -> Java10 - Current max version in Debian unstable -# 55 -> Java11 -max-bytecode-version = 54 +# 54 -> Java10 +# 55 -> Java11 - Current max version in Debian unstable +# 56 -> Java12 +max-bytecode-version = 55 max-bytecode-existing-version = 55 diff --git a/t/tests/java-class-format/debian/debian/rules b/t/tests/java-class-format/debian/debian/rules index b79c40c78..59235963f 100755 --- a/t/tests/java-class-format/debian/debian/rules +++ b/t/tests/java-class-format/debian/debian/rules @@ -7,8 +7,8 @@ override_jh_build: unzip test.jar # Unknown class version perl -i -pe 's/^(\xCA\xFE\xBA\xBE...)./$$1\x2A/' org/debian/lintian/TestA.class - # Java11 (unsupported) - perl -i -pe 's/^(\xCA\xFE\xBA\xBE...)./$$1\x37/' org/debian/lintian/TestB.class + # Java12 (unsupported) + perl -i -pe 's/^(\xCA\xFE\xBA\xBE...)./$$1\x38/' org/debian/lintian/TestB.class # Put them in separate Jars because Lintian stops when the first # "unknown class format" is seen zip -r testa.jar META-INF/ org/debian/lintian/TestA.class diff --git a/t/tests/java-class-format/tags b/t/tests/java-class-format/tags index 588eb01c0..aa21ea634 100644 --- a/t/tests/java-class-format/tags +++ b/t/tests/java-class-format/tags @@ -1,2 +1,2 @@ -W: libtest-java: incompatible-java-bytecode-format Java11 version (Class format: 55) +W: libtest-java: incompatible-java-bytecode-format Java12 version (Class format: 56) W: libtest-java: unknown-java-class-version usr/share/java/testa-1.0.jar (org/debian/lintian/TestA.class -> 42) -- 2.11.0