RFR: 8331655: ClassFile API ClassCastException with verbose output of certain class files [v2]
Paul Sandoz
psandoz at openjdk.org
Fri May 3 17:54:52 UTC 2024
On Fri, 3 May 2024 17:13:04 GMT, Adam Sotona <asotona at openjdk.org> wrote:
>> Specifically corrupted constant pool of a class file can cause ClassCastException, when the entries are accessed by Class-File API in exact order.
>>
>> This fix avoids the ClassCastException and throws ConstantPoolException instead.
>> Test is attached.
>>
>> Please review.
>>
>> Thanks,
>> Adam
>
> Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
>
> applied suggested changes
Nice!
-------------
Marked as reviewed by psandoz (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/19088#pullrequestreview-2038729421
More information about the core-libs-dev
mailing list