RFR: 8266791: Annotation property which is compiled as an array property but changed to a single element throws NullPointerException [v2]
Rafael Winterhalter
winterhalter at openjdk.java.net
Wed Jun 9 13:46:04 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 incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
- 8266791: Annotation property which is compiled as an array property but changed to a single element throws NullPointerException
- 8266766: Arrays of types that cannot be an annotation member do not yield exceptions
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/3940/files
- new: https://git.openjdk.java.net/jdk/pull/3940/files/aeae89ac..f126bc2d
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3940&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3940&range=00-01
Stats: 607815 lines in 5193 files changed: 511783 ins; 75812 del; 20220 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