forbidding serialization methods as members of records
Joe Darcy
joe.darcy at oracle.com
Thu Oct 31 16:04:27 UTC 2019
Hello,
Declaring a serialPersistentFields field should likely get the same
warning/error treatment as the methods below. (The
serialPersistentFields mechanism in serialization allows the set of
serialized fields to be overridden.)
Cheers,
-Joe
On 10/31/2019 5:21 AM, Vicente Romero wrote:
> Hi,
>
> In the past we discussed about forbidding the declaration of some
> serialization related methods in records. In particular:
>
> writeObject(ObjectOutputStream)
> readObjectNoData()
> readObject(ObjectInputStream)
>
> I wonder if we still want to enforce that restriction, meaning that it
> should be reflected in the spec, or if it is not necessary anymore,
>
> Thanks,
> Vicente
>
>
More information about the amber-spec-experts
mailing list