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

Alan Bateman alanb at openjdk.org
Tue Oct 31 16:11:33 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

Marked as reviewed by alanb (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/16123#pullrequestreview-1706717719


More information about the core-libs-dev mailing list