hg: macosx-port/macosx-port/jdk: Fix for MACOSX_PORT-368: UnsupportedOperationException on TrayIcon.dispose()
Leonid Romanov
leonid.romanov at oracle.com
Mon Nov 7 07:53:12 PST 2011
Yep, sounds like a good idea. Thanks!
Leonid.
On 07.11.2011, at 19:47, Mike Swingler wrote:
> On Nov 7, 2011, at 4:11 AM, alexander.zuev at oracle.com wrote:
>
>> Changeset: 605dfb5d7cec
>> Author: leonidr
>> Date: 2011-11-07 16:11 +0300
>> URL: http://hg.openjdk.java.net/macosx-port/macosx-port/jdk/rev/605dfb5d7cec
>>
>> Fix for MACOSX_PORT-368: UnsupportedOperationException on TrayIcon.dispose()
>>
>> ! src/macosx/classes/sun/lwawt/macosx/CTrayIcon.java
>> ! src/macosx/native/sun/awt/CTrayIcon.h
>> ! src/macosx/native/sun/awt/CTrayIcon.m
>
> Why not just have CTrayIcon extend CFRetainedResource, then you don't have to write your own native disposer, and you can specify that the release automatically happen on the AppKit thread so the dispose will happen on the AppKit thread (which it usually won't as the code is currently written).
>
> Regards,
> Mike Swingler
> Java Engineering
> Apple Inc.
>
More information about the macosx-port-dev
mailing list