hg: macosx-port/macosx-port/jdk: Fix for MACOSX_PORT-368: UnsupportedOperationException on TrayIcon.dispose() (original) (raw)
Mike Swingler swingler at apple.com
Mon Nov 7 07:47:45 PST 2011
- Previous message: hg: macosx-port/macosx-port/jdk: Fix for MACOSX_PORT-368: UnsupportedOperationException on TrayIcon.dispose()
- Next message: hg: macosx-port/macosx-port/jdk: Fix for MACOSX_PORT-368: UnsupportedOperationException on TrayIcon.dispose()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 MACOSXPORT-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.
- Previous message: hg: macosx-port/macosx-port/jdk: Fix for MACOSX_PORT-368: UnsupportedOperationException on TrayIcon.dispose()
- Next message: hg: macosx-port/macosx-port/jdk: Fix for MACOSX_PORT-368: UnsupportedOperationException on TrayIcon.dispose()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]