JDK 18 augmented `javac -Xlint:serial` checks


At present, the -Xlint:serial checks done by javac check that a serializable class has a serialVersionUID field and that the field is properly declared, with type long and modifiers static and final, etc. Besides serialVersionUID, the serialization mechanism recognizes and can also use one other field (serialPersistentFields) and five methods…

More at https://mail.openjdk.java.net/pipermail/jdk-dev/2021-October/006166.html