United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7122796 SunToolkit constructor should create the EventQueue for the Main AppContext
JDK-7122796 : SunToolkit constructor should create the EventQueue for the Main AppContext

Details
Type:
Bug
Submit Date:
2011-12-19
Status:
Resolved
Updated Date:
2013-07-10
Project Name:
JDK
Resolved Date:
2011-12-26
Component:
client-libs
OS:
generic
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
The original issue has been identified at http://java.net/jira/browse/MACOSX_PORT-724.

The SunToolkit constructor creates an EQ for the current AppContext. The SunToolkit.createNewAppContext() creates an EQ for the newly created AppContext. Thus, if we create a user app context first, and then initialize the AWT Toolkit, we'll end up w/o an EQ for the system app context. Instead we'll create the EQ for the user app context twice.

                                    

Comments
EVALUATION

The SunToolkit constructor should force creation of the EQ for the main app context even though the toolkit may be initialized on a user app context.
                                     
2011-12-19



Hardware and Software, Engineered to Work Together