java.lang.Record as Interface

Brian Goetz brian.goetz at oracle.com
Wed Sep 16 13:28:23 UTC 2020


Yes, it was dropped.  The balance of benefit and incremental complexity 
did not seem to work out, because the set of use cases for which this 
would work seemed pretty limited.

We did leave room to support _abstract records_, with a constraint that 
a record's parenting be "abstract records all the way up", but we're not 
actively pursuing this one right now.

On 9/16/2020 6:30 AM, Nir Lisker wrote:
> Hi,
>
> I recall there was a discussion about making java.lang.Record an interface
> and allowing records to extend abstract classes that don't contain state.
> Was this idea dropped?
>
> - Nir



More information about the amber-dev mailing list