RFR: JDK-6361826: (reflect) provide method for mapping strings to class object for primitive types

Joe Darcy darcy at openjdk.org
Mon Jul 10 19:35:03 UTC 2023


On Sat, 1 Jul 2023 01:32:48 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> The descriptor string "I", "J", etc possible but not for "int", "long", "byte" etc which are keywords and can't be used as identifiers to name a class.

For users, I think it is reasonable for there to be an API accepting the source-level names ("int", "float", etc.) rather than the JVM-level names.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14743#issuecomment-1629604712


More information about the core-libs-dev mailing list