On Tue, 15 Nov 2022 01:52:14 GMT, Bo Zhang <d...@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 <zhangbo...@gmail.com>
Committer: Jorn Vernee <jver...@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

Reply via email to