Updated. I've come around to the idea that what we really want is an annotation, and that the annotation we really want already exists as an informal constraint in the form of "value-based class".
So now I'm proposing that we introduce a @ValueBased annotation, apply it to some classes, and key our warnings off of that. https://bugs.openjdk.java.net/browse/JDK-8249100 > On Jul 8, 2020, at 4:08 PM, Dan Smith <daniel.sm...@oracle.com> wrote: > > Here's an initial JEP draft for the "Identity Warnings for Inline Class > Candidates" feature, which I'm hoping we can target to 16. > > https://bugs.openjdk.java.net/browse/JDK-8249100 > > Feedback is welcome.