RFR: 8266791: Annotation property which is compiled as an array property but changed to a single element throws NullPointerException [v4]
Rafael Winterhalter
winterhalter at openjdk.java.net
Thu Jun 10 08:08:47 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 refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
8266791: Annotation property which is compiled as an array property but changed to a single element throws NullPointerException
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/3940/files
- new: https://git.openjdk.java.net/jdk/pull/3940/files/4e14cbb9..e804eb38
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3940&range=03
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3940&range=02-03
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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