RFR: 8254275: Development to revise ValueBased.html for consistency with inline class migration

Dan Smith dlsmith at openjdk.java.net
Fri Oct 9 20:33:22 UTC 2020


On Fri, 9 Oct 2020 20:26:31 GMT, Dan Smith <dlsmith at openjdk.org> wrote:

> Polishing the specification of "value-based class" to align with requirements of inline classes, allow classes (like
> Integer) with deprecated constructors, and clarify expectations for clients.

src/java.base/share/classes/java/lang/doc-files/ValueBased.html line 48:

> 46:         instances, or synchronization on an instances's intrinsic lock;</li>
> 47:     <li>are considered equal solely based on <code>equals()</code>, not
> 48:         based on reference equality (<code>==</code>);</li>

I removed this bullet because I don't think it really means anything. We already said classes are required not to
expose identity through their methods, and to override 'equals'

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

PR: https://git.openjdk.java.net/valhalla/pull/222



More information about the valhalla-dev mailing list