8022247: java/awt/EventDispatchThread/LoopRobustness/LoopRobustness throws NPE
authorleonidr
Tue, 06 Aug 2013 17:07:49 +0400
changeset 19175 478a81cf568d
parent 19174 175494bb464e
child 19176 208ff865828c
8022247: java/awt/EventDispatchThread/LoopRobustness/LoopRobustness throws NPE Reviewed-by: art
jdk/test/java/awt/EventDispatchThread/LoopRobustness/LoopRobustness.java
--- a/jdk/test/java/awt/EventDispatchThread/LoopRobustness/LoopRobustness.java	Fri Aug 02 15:42:04 2013 +0400
+++ b/jdk/test/java/awt/EventDispatchThread/LoopRobustness/LoopRobustness.java	Tue Aug 06 17:07:49 2013 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -49,6 +49,8 @@
     public static volatile boolean otherExceptionsCaught = false;
 
     public static void main(String [] args) throws Exception {
+        SunToolkit.createNewAppContext();
+
         ThreadGroup mainThreadGroup = Thread.currentThread().getThreadGroup();
 
         long at;