Release Note: `AnnotatedType` Throws NullPointerException for `null` Arguments

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: P4
    • 26
    • 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`, `getAnnotation`, and `getDeclaredAnnotation` methods from `AnnotatedElement`. These methods now throw NullPointerException instead of returning `false` or `null` for a null argument.

            Assignee:
            Chen Liang
            Reporter:
            Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: