<Swing Dev> RFR JDK-8245785: javax.swing.JTabbedPane cannot be deserialized
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Thu Jul 9 09:58:05 UTC 2020
Hi, Prasanta.
Why the "pages" object is not instantiated when deserialized? What will happen if the JTabbedPane
will have a few(more than zero) pages before deserialization, will all pages be serialized/deserialized in this case?
On 09.07.2020 01:14, Prasanta Sadhukhan wrote:
> Hi All,
>
> Please review a fix for an issue where deserializing a serialized JTabbedPane-object results in NullPointerException.
>
> The NPE is result of tabbed "pages" object not being instantiated when deserialized.
>
> Proposed fix is to add a null check for "pages" object.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8245785
>
> webrev: http://cr.openjdk.java.net/~psadhukhan/8245785/webrev.0/
>
> Regards
> Prasanta
--
Best regards, Sergey.
More information about the swing-dev
mailing list