JDK 12 RFR of JDK-8209024: Use SuppressWarnings on serialVersionUID fields in interfaces

Brian Burkhalter brian.burkhalter at oracle.com
Mon Aug 6 19:34:22 UTC 2018


Hi Joe,

Looks fine.

Brian

On Aug 6, 2018, at 12:11 PM, joe darcy <joe.darcy at oracle.com> wrote:

> 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.



More information about the core-libs-dev mailing list