On Wed, 15 May 2024 07:51:33 GMT, Adam Sotona 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 tes
On Wed, 15 May 2024 07:51:33 GMT, Adam Sotona 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 tes
On Tue, 14 May 2024 15:59:33 GMT, Paul Sandoz wrote:
>> Adam Sotona has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> fixed exception message
>
> src/java.base/share/classes/jdk/internal/classfile/impl/CodeImpl.java line
> 241:
>
>> 239:
> 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 So
On Tue, 14 May 2024 13:18:51 GMT, Adam Sotona 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
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
-
Commit messa