JDK-7122796 : SunToolkit constructor should create the EventQueue for the Main AppContext
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-12-19
  • Updated: 2013-07-10
  • Resolved: 2011-12-26
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.

To download the current JDK release, click here.
JDK 7 JDK 8
7u4Fixed 8 b19Fixed
Related Reports
Relates :  
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.
19-12-2011