JDK-7159266 : [macosx] ApplicationDelegate should not be set in the headless mode
Type:Bug
Component:client-libs
Sub-Component:java.awt
Affected Version:7
Priority:P2
Status:Closed
Resolution:Fixed
OS:os_x
CPU:generic
Submitted:2012-04-05
Updated:2012-05-04
Resolved:2012-04-17
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
The following Java FX bug describes the issue:
http://javafx-jira.kenai.com/browse/RT-20819
In a nutshell, starting from JDK 7u4 b16, a Java FX app on the Mac will hang if it's started with the software J2D rendering pipeline.
Comments
EVALUATION
This is a regression of 7132692.
To fix this issue we should not set an ApplicationDelegate when AWT is started in the headless mode. The ApplicationDleegate provides an implementation for com.apple.eawt API. All the features of the API (e.g. assiging an action for a system menu item Preferences in the Mac menu bar, etc.) don't make any sense in the headless mode anyway.