Initial JDK 11 RFR of JDK-8202385: Annotation to mark serial-related fields and methods (original) (raw)
Roger Riggs Roger.Riggs at Oracle.com
Thu May 10 21:26:12 UTC 2018
- Previous message: Initial JDK 11 RFR of JDK-8202385: Annotation to mark serial-related fields and methods
- Next message: Initial JDK 11 RFR of JDK-8202385: Annotation to mark serial-related fields and methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Joe,
The words are fine.
The field serialPersistentFields is also not used with @Externalizable.
I would guess the lint checker would flag those methods and field for warnings for Externalizable classes since they might mislead to think they were used.
Roger
On 5/10/2018 5:03 PM, joe darcy wrote:
PS After additional reading, I propose to add the follow clause to where using the annotation is not appropriate:
*
the {@code writeObject}, {@code readObject}, and {@code * readObjectNoData} methods in a class that is {@code * Externalizable}. While the {@code Externalizable} interface extends * {@code Serializable}, those three methods are not used for * externalizable classes. How does that sound? Thanks, -JoeOn 5/10/2018 1:22 PM, joe darcy wrote: Hi Roger,
Right; there are a few other distinguished methods defined for externalization, but they are defined on the as methods on the Externalizable interface as far as I can tell. The existence of externalization is mentioned in the javac lint bug JDK-8202385. I'll add as sentence indicating that the checks are for "Serializable but not Externalizable" classes. Thanks, -Joe
- Previous message: Initial JDK 11 RFR of JDK-8202385: Annotation to mark serial-related fields and methods
- Next message: Initial JDK 11 RFR of JDK-8202385: Annotation to mark serial-related fields and methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]