Inspectopedia
 
2024.3

Serializable class with unconstructable ancestor

Warning
New
Last modified: 03 December 2024

Reports Serializable classes whose closest non-serializable ancestor doesn't have a no-argument constructor. Such classes cannot be deserialized and will fail with an InvalidClassException.

Example: