On Sun, 9 May 2021 21:59:29 GMT, Rafael Winterhalter <winterhal...@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`.

This pull request has now been integrated.

Changeset: 51f3427e
Author:    Rafael Winterhalter <winterhal...@openjdk.org>
Committer: Joel Borggrén-Franck <jfra...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/51f3427e9bb4a3924a8178338316b9ea30304182
Stats:     99 lines in 2 files changed: 99 ins; 0 del; 0 mod

8266791: Annotation property which is compiled as an array property but changed 
to a single element throws NullPointerException

Reviewed-by: darcy, jfranck

-------------

PR: https://git.openjdk.java.net/jdk/pull/3940

Reply via email to