Integrated: 8274793: Suppress warnings on non-serializable non-transient instance fields in sun.net

Joe Darcy darcy at openjdk.java.net
Tue Oct 5 19:14:12 UTC 2021


On Tue, 5 Oct 2021 18:55:09 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Augmentations to javac's Xlint:serial checking are out for review (#5709) and the sun.net classes in this PR would need some changes to pass under the expanded checks.
> 
> The changes are to suppress warnings where non-transient fields in serializable types are not declared with a type statically known to be serializable. That isn't necessarily a correctness issues, but it does merit further scrutiny.
> 
> The changes in the PR are consistent with similar changes made in JDK libraries under the umbrella issue JDK-8231641.

This pull request has now been integrated.

Changeset: d34ec6cc
Author:    Joe Darcy <darcy at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/d34ec6ccfc27d9401acce0e03595b910764fbfaf
Stats:     3 lines in 2 files changed: 3 ins; 0 del; 0 mod

8274793: Suppress warnings on non-serializable non-transient instance fields in sun.net

Reviewed-by: alanb

-------------

PR: https://git.openjdk.java.net/jdk/pull/5826


More information about the net-dev mailing list