<Swing Dev> RFR: 8256376: The javax/swing/JSpinner/SerializationTest.java fails on headful windows
Sergey Bylokhov
serb at openjdk.java.net
Mon Nov 16 20:30:13 UTC 2020
The Windows L&F uses the windows specific class XPStyle as part of the border in the JSpinner. This class cannot be serialized and causes an exception during serialization. The root cause is that BasicSpinnerUI forgot to reset the border in uninstallUI() by the LookAndFeel.uninstallBorder(). I have found one more place where the LookAndFeel.installBorder() is not followed by the LookAndFeel.uninstallBorder() in the AquaSpinnerUI.
-------------
Commit messages:
- Initial fix
Changes: https://git.openjdk.java.net/jdk/pull/1234/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1234&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8256376
Stats: 112 lines in 3 files changed: 88 ins; 4 del; 20 mod
Patch: https://git.openjdk.java.net/jdk/pull/1234.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/1234/head:pull/1234
PR: https://git.openjdk.java.net/jdk/pull/1234
More information about the swing-dev
mailing list