RFR: 8361355: Negative cases of Annotated.getAnnotationData implementations are broken [v3]
Doug Simon
dnsimon at openjdk.org
Thu Jul 3 17:30:56 UTC 2025
> This PR fixes bugs in the implementation of `jdk.vm.ci.meta.Annotated.getAnnotationData`:
> 1. Calling `getAnnotatedData(annotationType)` fails with an ArrayIndexOutOfBoundsException instead of returning null when the receiver type is not annotated by `annotationType`.
> 2. Calling either of the `getAnnotatedData` methods with an `annotationType` value that does not represent an annotation interface silently succeeds when the receiver type does not (or can not) have any annotations (e.g. array and primitive types).
Doug Simon has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
- Merge tag 'jdk-26+4' into JDK-8361355
Added tag jdk-26+4 for changeset 1ca008fd
- fixed negative cases in getAnnotationData
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26116/files
- new: https://git.openjdk.org/jdk/pull/26116/files/b25684f7..ec161d59
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26116&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26116&range=01-02
Stats: 6616 lines in 362 files changed: 3437 ins; 1484 del; 1695 mod
Patch: https://git.openjdk.org/jdk/pull/26116.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26116/head:pull/26116
PR: https://git.openjdk.org/jdk/pull/26116
More information about the graal-dev
mailing list