On Sun, 8 Nov 2020 09:14:41 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

> As part of the serialization cleanup, I would like to remove the 
> serialization warning below from the non-public API(mostly motif and windows 
> L&Fs). Later I will remove it from the public API and move this warning to 
> the "javax.swing" package spec.
> 
>  * <strong>Warning:</strong>
>  * Serialized objects of this class will not be compatible with
>  * future Swing releases. The current serialization support is appropriate
>  * for short term storage or RMI between applications running the same
>  * version of Swing. A future release of Swing will provide support for
>  * long term persistence.
> 
> Note that this warning is useless because the UI delegates(parts of L&F) 
> should never be serialized. Such classes were marked as "Serializable" by 
> accident. If the component like JButton is serialized then parts related to 
> the L&F are removed from the stream. This is because default L&F could be 
> different before/after serialization.

Marked as reviewed by prr (Reviewer).

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

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

Reply via email to