On Thu, 31 Aug 2023 11:09:05 GMT, Adam Sotona <asot...@openjdk.org> wrote:

> Classfile API suppose to throw IllegalArgumentException in situations where 
> bytecode offset is out of allowed range. Such situation includes invalid 
> offset parsed from a TypeAnnotation as well as from other CodeAttribute 
> attributes.
> 
> This patch throws IAE for invalid bytecode offset when requested Label for 
> the parsed CodeAttribute, so it cover even wider range of cases than 
> mentioned in the bug report.
> 
> Please review.
> 
> Thanks,
> Adam

This pull request has now been integrated.

Changeset: 6d47fc6d
Author:    Adam Sotona <asot...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/6d47fc6d5b81d6764af322cc17653683f79a89de
Stats:     13 lines in 2 files changed: 13 ins; 0 del; 0 mod

8313258: RuntimeInvisibleTypeAnnotationsAttribute.annotations() API Index out 
of Bound error

Reviewed-by: briangoetz

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

PR: https://git.openjdk.org/jdk/pull/15511

Reply via email to