-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 26
-
Component/s: core-libs
Annotation access methods declared on [java.lang.reflect.AnnotatedElement] specify they throw `NullPointerException` if their argument is `null`. In prior releases, implementations of [java.lang.reflect.AnnotatedType] and its subinterfaces did not throw `NullPointerException` for [isAnnotationPresent][AnnotatedElement.isAnnotationPresent], [getAnnotation][AnnotatedType.getAnnotation], and [getDeclaredAnnotation][AnnotatedElement.getDeclaredAnnotation] methods from `AnnotatedElement`. These methods now throw `NullPointerException` instead of returning `false` or `null` for a null argument.