RFR: 8274793: Suppress warnings on non-serializable non-transient instance fields in sun.net
Alan Bateman
alanb at openjdk.java.net
Tue Oct 5 19:07:16 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.
Marked as reviewed by alanb (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/5826
More information about the net-dev
mailing list