JDK 14 RFR of JDK-8231262: Suppress warnings on non-serializable instance fields in security libs serializable classes

Peter Firmstone peter.firmstone at zeus.net.au
Thu Sep 19 20:40:48 UTC 2019


Hello,

I'd make an exception for interfaces, often these are not serializable, 
but their implementations may be, in this case a warning would be spurious.

Regards,

Peter.

On 20/09/2019 3:32 AM, Joe Darcy wrote:
> Hello,
>
> Ahead of augmenting javac's serial lint checks under JDK-8160675, it 
> would be helpful to mark fields in security libs classes where the 
> class is serializable, but a non-transient instance field does *not* 
> have a serialiable type. Such classes may have difficulties being 
> serialized at runtime:
>
>     JDK-8231262 : Suppress warnings on non-serializable instance 
> fields in security libs serializable classes
>     http://cr.openjdk.java.net/~darcy/8231262.0/
>
> The review thread of the of the analogous core libs change, 
> JDK-8231202: "Suppress warnings on non-serializable non-transient 
> instance fields in serializable classes", is out on core-libs:
>
> http://mail.openjdk.java.net/pipermail/core-libs-dev/2019-September/062456.html 
>
>
> Thanks,
>
> -Joe
>




More information about the security-dev mailing list