RFR: 6441373: Editing JTable is not Serializable

Sergey Bylokhov serb at openjdk.org
Wed Dec 10 05:35:24 UTC 2025


On Wed, 10 Dec 2025 03:38:25 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>Probably we should remove this listener when we enter serialization for editing JTable but it seems it throws exception before calling JTable.writeObject so we cannot remove the listener there..so I think present fix is good enough to make it not serialized..

You made the field of that object non-serializable, but the GenericEditor object itself is still serializable. After deserialization, we end up with a leaked GenericEditor instance whose "constructor" field is null. If we serialize the object multiple times, we may end up with multiple GenericEditor instances.

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

PR Comment: https://git.openjdk.org/jdk/pull/28627#issuecomment-3635463722


More information about the client-libs-dev mailing list