Updated Draft specs for JEP 359 (Records)

Florian Weimer fw at deneb.enyo.de
Sat Nov 2 10:21:16 UTC 2019


* 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.

Will the canonical constructor be invoked upon deserialization?
Sorry, I can't find a discussion of that aspect, but I'm sure it must
have come up before.


More information about the amber-dev mailing list