United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8005465 : [macosx] Evaluate if checking for the -XstartOnFirstThread is still needed in awt.m

Details
Type:
Enhancement
Submit Date:
2012-12-25
Status:
Resolved
Updated Date:
2013-04-16
Project Name:
JDK
Resolved Date:
2013-01-18
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
The JNI_OnLoad() function of the AWT dynamic library verifies whether it is running on the Cocoa thread, and if so, requires the -XstartOnFirstThread command line option to be specified by the user on the command line. This makes it difficult to initialize AWT after an FX application has already been started. See http://javafx-jira.kenai.com/browse/RT-20784

Since the code in awt.m is actually able to handle both cases, we should evaluate whether this check is needed in the first place, and possibly remove it.
                                    

Comments
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/035f87fc9f74
User:  lana
Date:  2013-01-30 16:42:16 +0000

                                     
2013-01-30
URL:   http://hg.openjdk.java.net/jdk8/awt/jdk/rev/035f87fc9f74
User:  anthony
Date:  2013-01-18 10:17:57 +0000

                                     
2013-01-18
Sent for review at: http://mail.openjdk.java.net/pipermail/awt-dev/2012-December/004018.html
                                     
2012-12-28
@Phil: this is a valid point. However, the fix is not as benign as we thought initially. We need to test it in JDK 8 first. After that we could port it to 7u12 or 7u14, depending on how much time it will take to test it thoroughly.
                                     
2012-12-28
JavaFX 8.0 is supposed to work with JDK 8.0 only. There's no a requirement for FX 8 to ultimately work with 7uX. Currently we don't plan on fixing this issue for 7uX release. We may back-port the fix later, after it's well tested with JDK / FX 8 first.
                                     
2012-12-27
Fully aware of that but the 7 fix is needed unless SQE can be convinced
to move all FX 8 testing onto JDK 8 sooner rather than later. It also implies
that some,maybe most,  FX developers need to start using interim JDK 8 builds too.
So a fix on 7u12 gives people another option.
                                     
2012-12-27
Since the JavaFX is built and tested with released version of the JDK (presently JDK 7). It is important that this problem gets fixed in the JDK first.
The JavaFX Printing feature RT-17383, which is a critical feature of JavaFX 8.0, needs this fix ASAP (by JDK 7u12 time frame).
                                     
2012-12-26



Hardware and Software, Engineered to Work Together