提交 d5a84484 编写于 作者: L leonidr

8022247: java/awt/EventDispatchThread/LoopRobustness/LoopRobustness throws NPE

Reviewed-by: art
上级 c8c4adea
/* /*
* 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -49,6 +49,8 @@ public class LoopRobustness { ...@@ -49,6 +49,8 @@ public class LoopRobustness {
public static volatile boolean otherExceptionsCaught = false; public static volatile boolean otherExceptionsCaught = false;
public static void main(String [] args) throws Exception { public static void main(String [] args) throws Exception {
SunToolkit.createNewAppContext();
ThreadGroup mainThreadGroup = Thread.currentThread().getThreadGroup(); ThreadGroup mainThreadGroup = Thread.currentThread().getThreadGroup();
long at; long at;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册