RFR: 8310242: Clarify the name parameter to Class::forName [v4]

Mandy Chung mchung at openjdk.org
Tue Jun 20 17:53:29 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

I added an API note in the 2-arg forName that it does not support loading of array types.  Also fixed the links.   A new test is added to show the valid and invalid names.

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

PR Comment: https://git.openjdk.org/jdk/pull/14528#issuecomment-1599246337


More information about the core-libs-dev mailing list