Withdrawn: 8228988: AnnotationParser throws NullPointerException on incompatible member type
winterhalter at openjdk.java.net
Mon Jan 11 15:16:58 UTC 2021
On Sun, 18 Oct 2020 22:21:37 GMT, Rafael Winterhalter <winterhalter at openjdk.org> wrote:
> If an annotation member type is changed in an incompatible manner, the `AnnotationParser` currently throws a `NullPointerException` if:
> - An enumeration-typed member is changed to be an annotation type or a `Class` type.
> - An annotation type is changed to be a non-annotation type.
> This patch creates `AnnotationTypeMismatchExceptionProxy` to give users a better error message and to delay the exception to the time where the annotation member is attempted to be accessed.
This pull request has been closed without being integrated.
More information about the core-libs-dev