-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 25
-
Component/s: core-libs
-
None
-
In Review
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.
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.
- csr for
-
JDK-8371954 Document null handling in core reflection APIs
-
- Finalized
-
- relates to
-
JDK-8371960 Missing null check in AnnotatedType annotation accessor methods
-
- Resolved
-
- links to
-
Review(master)
openjdk/jdk/28336