> On 31 Oct 2019, at 15:29, Brian Goetz <brian.go...@oracle.com> wrote: > >> "It is a compile-time error for a record declaration to declare a record >> component with the name |clone|, |finalize|, |getClass|, |hashCode|, >> |notify|, |notifyAll|, |readObjectNoData|, |readResolve|, >> |serialPersistentFields|, |serialVersionUID|, |toString|, |wait|, or >> |writeReplace|." >> >> Chris says that the serialization spec ignores all the serialization-related >> methods if they appear inside a record; should we lift the restrictions? > > But, I think we later decided we are not ignoring _all_ of the > serialization-related methods — that a readResolve() method is OK. FTR For records, the serialization runtime does consider the following: 1) writeReplace(), readResolve(), and 2) the serialVersionUID field The serialization runtime ignores the following: a) writeObject, writeObjectNoData, readObject, and b) serialPersistentFields, and c) writeExternal and readExternal - for what they’re worth! -Chris.
- Re: Draft JLS spec for records - local types Peter Levart
- Re: Draft JLS spec for records - local types Brian Goetz
- Re: Draft JLS spec for records - local types Remi Forax
- Re: Draft JLS spec for records - local types Tagir Valeev
- Re: Draft JLS spec for records - local ty... Brian Goetz
- Re: Draft JLS spec for records - loca... Tagir Valeev
- Updated Draft specs for JEP 359 (Records) Gavin Bierman
- Re: Updated Draft specs for JEP 359 (Records) Maurizio Cimadamore
- Re: Updated Draft specs for JEP 359 (Records) Maurizio Cimadamore
- Re: Updated Draft specs for JEP 359 (Records) Brian Goetz
- Re: Updated Draft specs for JEP 359 (Reco... Chris Hegarty
- Re: Updated Draft specs for JEP 359 (... Maurizio Cimadamore
- Re: Updated Draft specs for JEP ... Chris Hegarty
- Re: Updated Draft specs for ... Chris Hegarty
- Re: Updated Draft specs for JEP 359 (Reco... Chris Hegarty
- Re: Updated Draft specs for JEP 359 (Records) Gavin Bierman
- Re: Updated Draft specs for JEP 359 (Records) Remi Forax
- Re: Updated Draft specs for JEP 359 (Records) Vicente Romero
- Re: Updated Draft specs for JEP 359 (Records) Alex Buckley
- Re: Updated Draft specs for JEP 359 (Records) Alex Buckley