提交 da7a697c 编写于 作者: B bae

6983028: java/awt/FontClass/FontPrivilege.java

Reviewed-by: prr
上级 d690bcb3
......@@ -25,7 +25,7 @@
* @test
* @bug 5010310 6319835 6904882 6968373
* @summary test fonts can be created in the presence of a security manager
* @run main/othervm/secure=java.lang.SecurityManager FontPrivilege
* @run main FontPrivilege
*/
import java.awt.Font;
......@@ -33,6 +33,8 @@ import java.awt.Font;
public class FontPrivilege {
public static void main(String[] args) throws Exception {
System.setSecurityManager(new SecurityManager());
new Font("Helvetica", Font.PLAIN, 12).getFamily();
new Font("foo bar", Font.PLAIN, 12).getFamily();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册