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

Brian Goetz briangoetz at openjdk.org
Thu Sep 14 16:30:41 UTC 2023


On Thu, 31 Aug 2023 11:09:05 GMT, Adam Sotona <asotona at 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

Marked as reviewed by briangoetz (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/15511#pullrequestreview-1627320601


More information about the core-libs-dev mailing list