RFR: 8310242: Clarify the name parameter to Class::forName [v4]
Alan Bateman
alanb at openjdk.org
Sat Jun 17 13:59:16 UTC 2023
On Sat, 17 Jun 2023 00:35:22 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 incrementally with one additional commit since the last revision:
>
> missing 'L' for the array class name
This changes look okay but they do make me wonder if we should add a note to the 2-arg Class.forName to make it clear that it does not allow class names for array types, the class name has to be a binary name.
-------------
Marked as reviewed by alanb (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14528#pullrequestreview-1484828693
More information about the core-libs-dev
mailing list