Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
c16598db
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c16598db
编写于
7月 30, 2010
作者:
M
malenkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6972468: Security manager should be used for tests in java/beans/XMLEncoder
Reviewed-by: peterz
上级
4f21a695
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
14 addition
and
8 deletion
+14
-8
test/java/beans/XMLEncoder/Test4631471.java
test/java/beans/XMLEncoder/Test4631471.java
+8
-2
test/java/beans/XMLEncoder/Test4903007.java
test/java/beans/XMLEncoder/Test4903007.java
+3
-3
test/java/beans/XMLEncoder/javax_swing_JLayeredPane.java
test/java/beans/XMLEncoder/javax_swing_JLayeredPane.java
+3
-3
未找到文件。
test/java/beans/XMLEncoder/Test4631471.java
浏览文件 @
c16598db
/*
* Copyright (c) 2003, 20
07
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
10
, 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
...
...
@@ -23,7 +23,7 @@
/*
* @test
* @bug 4631471
* @bug 4631471
6972468
* @summary Tests DefaultTreeModel encoding
* @author Sergey Malenkov, Mark Davidson
*/
...
...
@@ -37,6 +37,12 @@ import javax.swing.tree.TreeNode;
public
abstract
class
Test4631471
extends
AbstractTest
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
main
();
System
.
setSecurityManager
(
new
SecurityManager
());
main
();
}
private
static
void
main
()
throws
Exception
{
// the DefaultMutableTreeNode will archive correctly
new
Test4631471
()
{
protected
Object
getObject
()
{
...
...
test/java/beans/XMLEncoder/Test4903007.java
浏览文件 @
c16598db
/*
* Copyright (c) 2003, 20
07
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
10
, 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
...
...
@@ -23,7 +23,7 @@
/*
* @test
* @bug 4903007
* @bug 4903007
6972468
* @summary Tests encoding of container with boxes and BoxLayout
* @author Sergey Malenkov, Mark Davidson
*/
...
...
@@ -36,7 +36,7 @@ import javax.swing.JPanel;
public
class
Test4903007
extends
AbstractTest
<
JPanel
>
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
new
Test4903007
().
test
(
false
);
// TODO: could not encode with security manager
new
Test4903007
().
test
(
true
);
}
protected
JPanel
getObject
()
{
...
...
test/java/beans/XMLEncoder/javax_swing_JLayeredPane.java
浏览文件 @
c16598db
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007,
2010,
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
...
...
@@ -23,7 +23,7 @@
/*
* @test
* @bug 5023552
* @bug 5023552
6972468
* @summary Tests JLayeredPane encoding
* @author Sergey Malenkov
*/
...
...
@@ -35,7 +35,7 @@ import javax.swing.JPanel;
public
final
class
javax_swing_JLayeredPane
extends
AbstractTest
<
JLayeredPane
>
{
public
static
void
main
(
String
[]
args
)
{
new
javax_swing_JLayeredPane
().
test
(
false
);
// TODO: could not encode with security manager
new
javax_swing_JLayeredPane
().
test
(
true
);
}
private
static
void
init
(
JLayeredPane
pane
,
int
layer
,
int
x
,
int
y
,
int
w
,
int
h
,
Color
color
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录