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

Roger Riggs rriggs at openjdk.org
Fri Jul 14 14:41:19 UTC 2023


On Fri, 14 Jul 2023 02:54:59 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Going over some old issues and found this RFE, posting without any tests or a CSR first to get some feedback on the overall API.
>
> Joe Darcy has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
> 
>  - Use new API in serialization; add tests.
>  - Merge branch 'master' into JDK-6361826
>  - Update API proposal.
>  - Merge branch 'master' into JDK-6361826
>  - JDK-6361826: (reflect) provide method for mapping strings to class object for primitive types

Looks good.
The inverse of `clazz.getName()` and `clazz.toString()` for primitive classes is a useful addition.

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

Marked as reviewed by rriggs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/14743#pullrequestreview-1530432811


More information about the core-libs-dev mailing list