RFR: JDK-6361826: (reflect) provide method for mapping strings to class object for primitive types [v2]
Joe Darcy
darcy at openjdk.org
Fri Jul 14 00:40:17 UTC 2023
On Mon, 10 Jul 2023 20:24:30 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 three additional commits since the last revision:
>
> - Update API proposal.
> - Merge branch 'master' into JDK-6361826
> - JDK-6361826: (reflect) provide method for mapping strings to class object for primitive types
Responding to some off-list discussion, within the JDK, ObjectInputStream.resolveClass would benefit from having the proposed method; it has what amounts to an internal implementation of the method already.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14743#issuecomment-1635092577
More information about the core-libs-dev
mailing list