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

ExE Boss duke at openjdk.org
Sun Jun 18 21:02:08 UTC 2023


On Sun, 18 Jun 2023 18:56:39 GMT, Jens Lidestrom <duke at openjdk.org> wrote:

>> Mandy Chung has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   missing 'L' for the array class name
>
> src/java.base/share/classes/java/lang/Class.java line 427:
> 
>> 425:      * Returns the {@code Class} object associated with the class or
>> 426:      * interface with the given string name, using the given class loader.
>> 427:      * Given the {@linkplain ##binary-name binary name} for a class or interface,
> 
> Is double hash a mistake?

That’s a new **Javadoc** feature available since **JDK 20**: [JDK‑8200337] ([GH‑10395])

[JDK‑8200337]: https://bugs.openjdk.org/browse/JDK-8200337 "[JDK‑8200337] Generalize see and link tags for user‑defined anchors"
[GH‑10395]: https://github.com/openjdk/jdk/pull/10395

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

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


More information about the core-libs-dev mailing list