<AWT Dev> [10] Review request for 8189201: [macosx] NotSerializableException during JFrame with MenuBar serialization

Semyon Sadetsky semyon.sadetsky at oracle.com
Mon Oct 23 19:41:03 UTC 2017


Hi Sergey,

On 10/20/2017 01:57 PM, Sergey Bylokhov wrote:
> Hi, Semyon.
>
> The AquaMenuBarBorder class is L&F specific, and it should not be 
> serialized/deserialized. Such information(plus l&f client 
> properties/listeners/etc) should be removed from the component before 
> serialization. And during deserialization the L&F of the target system 
> should be applied.
That is valid concern. The webrev is updated 
http://cr.openjdk.java.net/~ssadetsky/8189201/webrev.01/

--Semyon
>
> On 20/10/2017 13:08, Semyon Sadetsky wrote:
>> Hello,
>>
>> Please review fix for JDK10:
>>
>> bug: https://bugs.openjdk.java.net/browse/JDK-8189201
>>
>> webrev: http://cr.openjdk.java.net/~ssadetsky/8189201/webrev.00
>>
>> The root cause is that several JFrame fields contain non-serializable 
>> class instances. The fix marks those classes as serializable.
>>
>> --Semyon
>>
>
>



More information about the awt-dev mailing list