8022247: java/awt/EventDispatchThread/LoopRobustness/LoopRobustness throws NPE
Reviewed-by: art
--- 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;