RFR: 8331940: ClassFile API ArrayIndexOutOfBoundsException with certain class files [v2]

Paul Sandoz psandoz at openjdk.org
Wed May 15 15:59:12 UTC 2024


On Wed, 15 May 2024 07:51:33 GMT, Adam Sotona <asotona at openjdk.org> wrote:

>> Class file with `LineNumberTable` attribute element pointing behind the bytecode array throws `ArrayIndexOutOfBoundsException`.
>> This patch performs the check and throws  expected `IllegalArgumentException` instead.
>> Relevant test is added.
>> 
>> Please review.
>> 
>> Thanks,
>> Adam
>
> Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fixed exception message

Marked as reviewed by psandoz (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/19230#pullrequestreview-2058434044


More information about the core-libs-dev mailing list