On Fri, 5 Feb 2021 21:24:34 GMT, Rafael Winterhalter <winterhal...@openjdk.org> wrote:
> When a class is compiled against a version of an annotation that is later > loaded in an incompatible manner where an enum-typed member is changed into > an annotation or vice versa, the reflection API currently throws a > `NullPointerException` upon accessing the member. Instead an > `AnnotationTypeMismatchException` should be thrown. > > This change adjusts the parsing to trigger the correct exception. Marked as reviewed by darcy (Reviewer). ------------- PR: https://git.openjdk.java.net/jdk/pull/2439