changeset 9482:07abddc1d7f2

8022247: java/awt/EventDispatchThread/LoopRobustness/LoopRobustness throws NPE Reviewed-by: art
author leonidr
date Tue, 06 Aug 2013 17:07:49 +0400
parents e76b1568d002
children 27d1bdf2f7d9
files test/java/awt/EventDispatchThread/LoopRobustness/LoopRobustness.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/awt/EventDispatchThread/LoopRobustness/LoopRobustness.java	Fri Aug 02 15:42:04 2013 +0400
+++ b/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;