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

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


On Tue, 31 Oct 2023 16:08:54 GMT, Alan Bateman <alanb 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).

@AlanBateman Thank you!

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

PR Comment: https://git.openjdk.org/jdk/pull/16123#issuecomment-1787537011


More information about the core-libs-dev mailing list