Document null handling in core reflection APIs

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • 26
    • Affects Version/s: 25
    • Component/s: core-libs
    • None

      A lot of core reflection APIs are from antique times, which have their own null handling behavior. Such behaviors are often not documented in the specification; we should document rejected null arguments and accepted null arguments (including array elements) explicitly.

      In addition, Class.isNestmateOf has inconsistent null handling: it fails with NPE for Object.class but returns false for int.class. We should ensure this is more consistent.

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

              Created:
              Updated: