RFR: JDK-6361826: (reflect) provide method for mapping strings to class object for primitive types
Mandy Chung
mchung at openjdk.org
Fri Jul 14 17:35:12 UTC 2023
On Mon, 10 Jul 2023 20:36:31 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> For discussion purposes, pushed an update where the new method returns null on a non-primitive name.
I also think returning null is saner than throwing a checked exception which avoids forcing the caller to catch and also the cost of constructing an exception being thrown away.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14743#issuecomment-1636169276
More information about the core-libs-dev
mailing list