RFR: 8266791: Annotation property which is compiled as an array property but changed to a single element throws NullPointerException [v3]
Joe Darcy
darcy at openjdk.java.net
Thu Jun 10 00:18:15 UTC 2021
On Wed, 9 Jun 2021 13:56:40 GMT, Rafael Winterhalter <winterhalter at openjdk.org> wrote:
>> 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.
Please add an overview to test before integrating; thanks.
-------------
Marked as reviewed by darcy (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/3940
More information about the core-libs-dev
mailing list