[lworld] Integrated: 8254797: [Development] Define & apply annotation jdk.internal.ValueBased

Roger Riggs rriggs at openjdk.java.net
Tue Oct 20 20:22:31 UTC 2020


On Tue, 20 Oct 2020 15:26:04 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> Define a JDK-internal annotation, jdk.internal.ValueBased, which indicates that a class or interface is value-based,
> per: java/lang/doc-files/ValueBased.html
> (The switch of the compiler from the existing java.lang.ValueBased to jdk.internal.ValueBased will occur separately).
> 
> Apply the annotation wherever existing documentation references ValueBased.html, including:
> - The primitive wrapper classes in java.lang;
> - The class java.lang.Runtime.Version;
> - The "optional" classes in java.util: Optional, OptionalInt, OptionalLong, and OptionalDouble;
> - Many classes in the java.time API: Instant, LocalDate, LocalTime, LocalDateTime, ZonedDateTime, ZoneId, OffsetTime,
>   OffsetDateTime, ZoneOffset, Duration, Period, Year, YearMonth, and MonthDay, and, in java.time.chrono: MinguoDate,
>   HijrahDate, JapaneseDate, and ThaiBuddhistDate;
> - The interface java.lang.ProcessHandle and its implementation classes;
> - and an initial set of other classes
> 
> The CSR for these changes will occur *after* the prototyping of javac and the VM runtime is working.

This pull request has now been integrated.

Changeset: 31678561
Author:    Roger Riggs <rriggs at openjdk.org>
URL:       https://git.openjdk.java.net/valhalla/commit/31678561
Stats:     80 lines in 37 files changed: 78 ins; 1 del; 1 mod

8254797: [Development] Define & apply annotation jdk.internal.ValueBased

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

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



More information about the valhalla-dev mailing list