--- a/jdk/src/java.desktop/share/classes/sun/awt/SunToolkit.java Mon Aug 24 16:06:36 2015 +0400
+++ b/jdk/src/java.desktop/share/classes/sun/awt/SunToolkit.java Tue Aug 25 13:03:08 2015 +0300
@@ -124,18 +124,7 @@
* @param appContext AppContext to associate with the event queue
*/
private static void initEQ(AppContext appContext) {
- EventQueue eventQueue;
-
- String eqName = System.getProperty("AWT.EventQueueClass",
- "java.awt.EventQueue");
-
- try {
- eventQueue = (EventQueue)Class.forName(eqName).newInstance();
- } catch (Exception e) {
- e.printStackTrace();
- System.err.println("Failed loading " + eqName + ": " + e);
- eventQueue = new EventQueue();
- }
+ EventQueue eventQueue = new EventQueue();
appContext.put(AppContext.EVENT_QUEUE_KEY, eventQueue);
PostEventQueue postEventQueue = new PostEventQueue(eventQueue);