On Mon, 6 Jul 2026 23:36:05 GMT, Chen Liang <[email protected]> wrote:

> `ValueBased` talks about constructor avoidance but does not specify the 
> reason. It's better to include the reason because it's not straightforward 
> from the fact that there's no binary incompatibility.
> 
> Also `InvalidClassException` benefits from descriptions about 
> strictly-initialized fields.
> 
> ---------
> - [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/doc-files/ValueBased.html line 39:

> 37: A value-based class has the following properties:
> 38: <ul>
> 39:     <li>all instance fields declared in the class and all its 
> superclasses are

Suggestion:

    <li>all instance fields declared in the class and all of its superclasses 
are

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2631#discussion_r3596140792

Reply via email to