RFR: 8266791: Annotation property which is compiled as an array property but changed to a single element throws NullPointerException [v6]
Rafael Winterhalter
winterhalter at openjdk.java.net
Thu Jun 10 14:00:28 UTC 2021
> During annotation parsing, the parser assumes that a declared property is of an array type if the parsed annotation property is defined as an array. In this case, the component type is `null`, and a `NullPointerException` is thrown. This change discovers the mismatch and throws an `AnnotationTypeMismatchException`.
Rafael Winterhalter has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains one commit:
8266791: Annotation property which is compiled as an array property but changed to a single element throws NullPointerException
-------------
Changes: https://git.openjdk.java.net/jdk/pull/3940/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3940&range=05
Stats: 99 lines in 2 files changed: 99 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/3940.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3940/head:pull/3940
PR: https://git.openjdk.java.net/jdk/pull/3940
More information about the core-libs-dev
mailing list