New candidate JEP: 390: Warnings for Value-Based Classes
Posted on September 24, 2020
Define a @ValueBased annotation, apply it to classes in the Java Platform API that may become inline classes in a future release, and provide warnings about improper attempts to synchronize on instances of such classes. Deprecate the constructors of the primitive wrapper classes for removal in order that these classes may be considered @ValueBased classes…
More at https://mail.openjdk.java.net/pipermail/jdk-dev/2020-September/004757.html