Updated Draft specs for JEP 359 (Records)

Gavin Bierman gavin.bierman at oracle.com
Wed Nov 6 13:35:06 UTC 2019



> On 2 Nov 2019, at 10:21, Florian Weimer <fw at deneb.enyo.de> wrote:
> 
> * Gavin Bierman:
> 
>> An updated draft language spec for JEP 359 (Records) is available at:
>> 
>> http://cr.openjdk.java.net/~gbierman/jep359/jep359-20191031/specs/records-jls.html
>> <http://cr.openjdk.java.net/~gbierman/jep359/jep359-20191031/specs/records-jls.html>
> 
> Is it allowed to declare a canonical constructor explicitly and make
> it non-public?  I think the naswer is no.  But it's not quite obvious
> from the spec, I think.

As Brian has said, no it is not possible. I will take another look at the spec to see if I can make this clearer.

Thanks,
Gavin



More information about the amber-dev mailing list