Integrated: 8296329: jar validator doesn't account for minor class file version
Bo Zhang
duke at openjdk.org
Wed Nov 23 03:12:35 UTC 2022
On Tue, 15 Nov 2022 01:52:14 GMT, Bo Zhang <duke at openjdk.org> wrote:
> As described in [JDK-8296329](https://bugs.openjdk.org/browse/JDK-8296329), previously, the jar validator compare the "version" to validate a multi-release jar. The "version" is a mix of the major and minor version fused into a single int, which might be a negative number with `--enable-preview` - this result in wrong comparison.
>
> This PR fixes it by only comparing major versions.
This pull request has now been integrated.
Changeset: faf48e61
Author: Bo Zhang <zhangbodut at gmail.com>
Committer: Jorn Vernee <jvernee at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/faf48e61be4f97f725b053aa351d3c64638546bf
Stats: 127 lines in 3 files changed: 123 ins; 1 del; 3 mod
8296329: jar validator doesn't account for minor class file version
Reviewed-by: jvernee
-------------
PR: https://git.openjdk.org/jdk/pull/11153
More information about the compiler-dev
mailing list