Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
b6b9432b
D
dragonwell8_langtools
项目概览
openanolis
/
dragonwell8_langtools
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_langtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b6b9432b
编写于
8月 27, 2009
作者:
J
jjg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6876753: javap tests fail on Windows
Reviewed-by: darcy
上级
f4fd9a1e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
6 deletion
+16
-6
test/tools/javap/T4975569.java
test/tools/javap/T4975569.java
+2
-1
test/tools/javap/T6729471.java
test/tools/javap/T6729471.java
+12
-3
test/tools/javap/pathsep.sh
test/tools/javap/pathsep.sh
+1
-1
test/tools/javap/stackmap/T6271292.sh
test/tools/javap/stackmap/T6271292.sh
+1
-1
未找到文件。
test/tools/javap/T4975569.java
浏览文件 @
b6b9432b
...
...
@@ -65,6 +65,7 @@ public class T4975569
int
errors
;
String
javap
(
String
className
)
{
String
newline
=
System
.
getProperty
(
"line.separator"
);
String
testClasses
=
System
.
getProperty
(
"test.classes"
,
"."
);
StringWriter
sw
=
new
StringWriter
();
PrintWriter
out
=
new
PrintWriter
(
sw
);
...
...
@@ -73,7 +74,7 @@ public class T4975569
if
(
rc
!=
0
)
throw
new
Error
(
"javap failed. rc="
+
rc
);
out
.
close
();
String
output
=
sw
.
toString
();
String
output
=
sw
.
toString
()
.
replaceAll
(
newline
,
"\n"
)
;
System
.
out
.
println
(
"class "
+
className
);
System
.
out
.
println
(
output
);
return
output
;
...
...
test/tools/javap/T6729471.java
浏览文件 @
b6b9432b
...
...
@@ -29,6 +29,7 @@
*/
import
java.io.*
;
import
java.net.*
;
import
java.util.*
;
public
class
T6729471
...
...
@@ -59,14 +60,22 @@ public class T6729471
if
(
java_home
.
getName
().
equals
(
"jre"
))
java_home
=
java_home
.
getParentFile
();
File
rt_jar
=
new
File
(
new
File
(
new
File
(
java_home
,
"jre"
),
"lib"
),
"rt.jar"
);
verify
(
"jar:file:"
+
rt_jar
+
"!/java/util/Map.class"
,
try
{
verify
(
"jar:"
+
rt_jar
.
toURL
()
+
"!/java/util/Map.class"
,
"public abstract boolean containsKey(java.lang.Object)"
);
}
catch
(
MalformedURLException
e
)
{
error
(
e
.
toString
());
}
// jar url: ct.sym, if it exists
File
ct_sym
=
new
File
(
new
File
(
java_home
,
"lib"
),
"ct.sym"
);
if
(
ct_sym
.
exists
())
{
verify
(
"jar:file:"
+
ct_sym
+
"!/META-INF/sym/rt.jar/java/util/Map.class"
,
"public abstract boolean containsKey(java.lang.Object)"
);
try
{
verify
(
"jar:"
+
ct_sym
.
toURL
()
+
"!/META-INF/sym/rt.jar/java/util/Map.class"
,
"public abstract boolean containsKey(java.lang.Object)"
);
}
catch
(
MalformedURLException
e
)
{
error
(
e
.
toString
());
}
}
else
System
.
err
.
println
(
"warning: ct.sym not found"
);
...
...
test/tools/javap/pathsep.sh
浏览文件 @
b6b9432b
...
...
@@ -40,7 +40,7 @@ echo "TESTJAVA=${TESTJAVA}"
# set platform-dependent variables
OS
=
`
uname
-s
`
case
"
$OS
"
in
SunOS
|
Linux
)
SunOS
|
Linux
|
CYGWIN
*
)
FS
=
"/"
;;
Windows
*
)
...
...
test/tools/javap/stackmap/T6271292.sh
浏览文件 @
b6b9432b
...
...
@@ -53,7 +53,7 @@ printf 'CLASSPATH="%s"' "${CLASSPATH}" >&2 ; echo >&2
# set platform-dependent variables
OS
=
`
uname
-s
`
case
"
$OS
"
in
CYGWIN
*
|
Windows
*
)
Windows
*
)
FS
=
"
\\
"
;;
*
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录