<Swing Dev> [9] Review Request: 8134947 [macosx] Various memory leaks in Aqua look and feel

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Mon Sep 7 14:28:57 UTC 2015


   The fix looks good to me.

   Thanks,
   Alexandr.

On 9/7/2015 5:19 PM, Alexander Zvegintsev wrote:
> Hello Sergey,
> the fix looks good to me.
>
> -- 
> Thanks,
> Alexander.
>
> On 07.09.2015 15:48, Sergey Bylokhov wrote:
>> Hello.
>> Please review the fix for jdk9.
>> Initially I found this bug in JSpinner during my work on
>> JDK-7124397, after I covers other components in the test I found 
>> other cases in Aqua.
>>
>> The problem is that some of UI delegates in Aqua does not follow the 
>> rules that they should removes all listeners/references in the 
>> uninstallUI method.
>>
>> AquaCaret.java + related textui : this ui now updates the 
>> reference/listeners in install/deinstall instead of update it only 
>> once in the constructor.
>>
>> AquaInternalFrameUI.java : code related to components removing was 
>> moved to uninstallComponents.
>>
>> AquaSpinnerUI.java : see comments in the code.
>>
>> AquaTabbedPaneUI.java : I force removing of the reference to the ui 
>> delegate from the timer.
>>
>> I also tried to make a small cleanup and split longest lines only, 
>> otherwise in some cases I will have to update the whole files.
>>
>> The follow bug for motif/synth l&f is filed: JDK-8135138
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8134947
>> The new test: http://cr.openjdk.java.net/~serb/8134947/webrev.00
>




More information about the swing-dev mailing list