Integrated: 8317609: Classfile API fails to verify /jdk.jcmd/sun/tools/jstat/Alignment.class

Adam Sotona asotona at openjdk.org
Tue Oct 31 16:16:43 UTC 2023


On Tue, 10 Oct 2023 15:09:41 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> JImageValidator has been recently converted to use ClassFile API and original weak validation of class files was replaced with full class verification.
> Unfortunately full class verification is too strong as it includes class assignability verification according to class hierarchy resolution.
> This patch relaxes class assignability verification from JImageValidator by mocking ClassHierarchyResolver.
> Resolution of all classes as interfaces during verification effectively cancels the assignability verification (as interface assignability is not verified).
> 
> Please review this pull request.
> 
> Thanks,
> Adam

This pull request has now been integrated.

Changeset: f1e87873
Author:    Adam Sotona <asotona at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f1e878739300ed37c686ba570423c6f8a9fb310f
Stats:     5 lines in 1 file changed: 4 ins; 0 del; 1 mod

8317609: Classfile API fails to verify /jdk.jcmd/sun/tools/jstat/Alignment.class

Reviewed-by: liach, alanb

-------------

PR: https://git.openjdk.org/jdk/pull/16123


More information about the core-libs-dev mailing list