equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
26 import java.util.Timer; |
26 import java.util.Timer; |
27 import java.util.TimerTask; |
27 import java.util.TimerTask; |
28 |
28 |
29 /* |
29 /* |
30 @test |
30 @test |
|
31 @key headful |
31 @bug 7080109 |
32 @bug 7080109 |
32 @summary Dialog.show() lacks doPrivileged() to access system event queue. |
33 @summary Dialog.show() lacks doPrivileged() to access system event queue. |
33 @author sergey.bylokhov@oracle.com: area=awt.dialog |
34 @author sergey.bylokhov@oracle.com: area=awt.dialog |
34 @run main/othervm/policy=java.policy -Djava.security.manager ModalDialogPermission |
35 @run main/othervm/policy=java.policy -Djava.security.manager ModalDialogPermission |
35 */ |
36 */ |