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

Roger Riggs rriggs at openjdk.org
Fri Jun 16 21:26:14 UTC 2023


On Fri, 16 Jun 2023 21:24:17 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:
> 
>   Clarify for an array class of primitive type

src/java.base/share/classes/java/lang/Class.java line 448:

> 446:      * <p> To find an array class of a primitive type, the name string
> 447:      * consists of one or more {@code '['} followed by the field type descriptor
> 448:      * of the primitive type (JVMS {@jvms 4.3.2 }) e.g. {@code "[I"} to

Can we avoid mixing "i.e." and "e.g"?
There are more "For example" occurrences than either "i.e." or "e.g." 
Your call.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14528#discussion_r1232792847


More information about the core-libs-dev mailing list