JDK 12 RFR of JDK-8209024: Use SuppressWarnings on serialVersionUID fields in interfaces (original) (raw)

Alan Bateman Alan.Bateman at oracle.com
Tue Aug 7 06:12:15 UTC 2018


On 06/08/2018 20:11, joe darcy wrote:

Hello,

Various interfaces in the JDK extend Serializable and declare serialVersionUID fields. Such fields are ineffectual and @SuppressWarnings("serial") should be applied to such fields to suppress future planned serial lint checks (JDK-8202056). Most of the affected files are in the security-libs area with a handful in RMI and JNDI: http://cr.openjdk.java.net/~darcy/8209024.0/ Patch below. I'll fix-up the copyright years before any push. Is there a follow-on patch coming to deprecate these fields?

-Alan



More information about the core-libs-dev mailing list