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

Chen Liang liach at openjdk.org
Wed May 15 11:31:03 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 liach (Author).

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

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


More information about the core-libs-dev mailing list