On Thu, 25 Jun 2026 10:14:44 GMT, ExE Boss <[email protected]> wrote:

>> Reflective preview APIs can be used out of preview. Thus it is meaningful 
>> for us to note how they behave when preview features are disabled.
>> 
>> I hope this can clarify some common misconceptions and help onboarding to 
>> the JEP 401 reflection model.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> 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.

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

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

Reply via email to