RFR: 8310242: Clarify the name parameter to Class::forName [v6]
Mandy Chung
mchung at openjdk.org
Wed Jun 21 22:18:07 UTC 2023
On Wed, 21 Jun 2023 22:02:16 GMT, Mandy Chung <mchung at openjdk.org> wrote:
>> This PR clarifies the spec of the 3-arg Class::forName regarding the format of the name for an array type which is of the form: one or more of "[" + binary name of the element type + ";'.
>
> Mandy Chung 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 eight additional commits since the last revision:
>
> - improve the specification of forName
> - Merge branch 'master' of https://github.com/openjdk/jdk into JDK-8310242
> - Merge branch 'master' of https://github.com/openjdk/jdk into JDK-8310242
> - Review comment. Add a test
> - missing 'L' for the array class name
> - review comment
> - Clarify for an array class of primitive type
> - 8310242: Clarify the name parameter to Class::forName
I improved the spec of `forName` to make it clear of the name for nested types and array types. It now refers to the table in `getName` about the name of an array class.
@dholmes-ora does that clarify and address the concerns you had?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14528#issuecomment-1601750566
More information about the core-libs-dev
mailing list