On Thu, 25 Jun 2026 11:58:00 GMT, Chen Liang <[email protected]> wrote:

>> src/java.base/share/classes/java/lang/Class.java line 1392:
>> 
>>> 1390:      *      <div class="preview-comment">
>>> 1391:      *          When preview features are enabled, if this {@code 
>>> Class} object
>>> 1392:      *          represents a class that does not use preview features 
>>> or an
>> 
>> The old wording can be read as a class that doesn’t use arrays:
>> Suggestion:
>> 
>>      *          represents a class that does not use preview features or is 
>> an
>
> "represents a class ... or an array type". Note here "a class" is 
> intentionally distinct from "a Class object", that a "class" means the 
> "class" in "class or interface", in its narrowest sense.

I have reworded this so:

1. It's the class file that does not use preview features
2. "or represents" makes wording more clear.

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2578#discussion_r3474869991

Reply via email to