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

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

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

Changes: https://git.openjdk.org/jdk/pull/15511/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15511&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8313258
  Stats: 13 lines in 2 files changed: 13 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/15511.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15511/head:pull/15511

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

Reply via email to