United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7159266 [macosx] ApplicationDelegate should not be set in the headless mode
JDK-7159266 : [macosx] ApplicationDelegate should not be set in the headless mode

Details
Type:
Bug
Submit Date:
2012-04-05
Status:
Closed
Updated Date:
2012-05-04
Project Name:
JDK
Resolved Date:
2012-04-17
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4 (b20)

Related Reports
Backport:
Relates:

Sub Tasks

Description
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.
                                     
2012-04-05



Hardware and Software, Engineered to Work Together