JDK 18 |
---|
18 b21Fixed |
CSR :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
As an enhancement to javac's lint warnings about serialization (JDK-4767441), it would be informative if javac warned about the presence non-serializable non-transient instance fields in a serializable class. The types can lead to interesting instances of a type not being serializable in practice (JDK-6226715). Such a warning should be omitted if a class defines serialPersistentFields (see https://docs.oracle.com/javase/8/docs/platform/serialization/spec/serial-arch.html#a5251).
|