RFR: 8254275: Development to revise "value-based class" & apply to wrappers [v2]

Stephen Colebourne github.com+213212+jodastephen at openjdk.java.net
Fri Oct 16 10:32:24 UTC 2020


On Tue, 13 Oct 2020 22:59:36 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.
>> Full docs build: http://cr.openjdk.java.net/~dlsmith/8254275/8254275-20201013/api/index.html
>
> Dan Smith has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Revise definition for more flexible ==. Apply revised boilerplate to wrappers and existing references.

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

> 33:
> 34: Some classes, such as <code>java.lang.Integer</code> and
> 35: <code>java.time.LocalDateTime</code>, are <em>value-based</em>.

`LocalDate` is a better examplar than `LocalDateTime` because `LocalDate` is much more widely used.

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

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



More information about the valhalla-dev mailing list