Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
4a989689
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看板
提交
4a989689
编写于
8月 12, 2013
作者:
V
vromero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8015780: java/lang/reflect/Method/GenericStringTest.java failing
Reviewed-by: darcy, jfranck
上级
678d153a
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
16 addition
and
8 deletion
+16
-8
test/ProblemList.txt
test/ProblemList.txt
+0
-3
test/java/lang/reflect/Method/GenericStringTest.java
test/java/lang/reflect/Method/GenericStringTest.java
+16
-5
未找到文件。
test/ProblemList.txt
浏览文件 @
4a989689
...
@@ -131,9 +131,6 @@ java/lang/management/MemoryMXBean/CollectionUsageThreshold.java generic-all
...
@@ -131,9 +131,6 @@ java/lang/management/MemoryMXBean/CollectionUsageThreshold.java generic-all
# 7196801
# 7196801
java/lang/management/MemoryMXBean/LowMemoryTest2.sh generic-all
java/lang/management/MemoryMXBean/LowMemoryTest2.sh generic-all
# 8015780
java/lang/reflect/Method/GenericStringTest.java generic-all
# 8019845 due to memleak not related to the tested fix
# 8019845 due to memleak not related to the tested fix
java/lang/instrument/RedefineBigClass.sh linux-x64
java/lang/instrument/RedefineBigClass.sh linux-x64
java/lang/instrument/RetransformBigClass.sh linux-x64
java/lang/instrument/RetransformBigClass.sh linux-x64
...
...
test/java/lang/reflect/Method/GenericStringTest.java
浏览文件 @
4a989689
...
@@ -48,12 +48,20 @@ public class GenericStringTest {
...
@@ -48,12 +48,20 @@ public class GenericStringTest {
if
(
egs
!=
null
)
{
if
(
egs
!=
null
)
{
String
actual
=
method
.
toGenericString
();
String
actual
=
method
.
toGenericString
();
System
.
out
.
println
(
actual
);
System
.
out
.
println
(
actual
);
if
(
method
.
isBridge
())
{
if
(!
egs
.
bridgeValue
().
equals
(
actual
))
{
failures
++;
System
.
err
.
printf
(
"ERROR: Expected ''%s''; got ''%s''.\n"
,
egs
.
value
(),
actual
);
}
}
else
{
if
(!
egs
.
value
().
equals
(
actual
))
{
if
(!
egs
.
value
().
equals
(
actual
))
{
failures
++;
failures
++;
System
.
err
.
printf
(
"ERROR: Expected ''%s''; got ''%s''.\n"
,
System
.
err
.
printf
(
"ERROR: Expected ''%s''; got ''%s''.\n"
,
egs
.
value
(),
actual
);
egs
.
value
(),
actual
);
}
}
}
}
}
if
(
method
.
isAnnotationPresent
(
ExpectedString
.
class
))
{
if
(
method
.
isAnnotationPresent
(
ExpectedString
.
class
))
{
ExpectedString
es
=
method
.
getAnnotation
(
ExpectedString
.
class
);
ExpectedString
es
=
method
.
getAnnotation
(
ExpectedString
.
class
);
...
@@ -117,7 +125,8 @@ class TestClass2<E, F extends Exception> {
...
@@ -117,7 +125,8 @@ class TestClass2<E, F extends Exception> {
class
Roebling
implements
Comparable
<
Roebling
>
{
class
Roebling
implements
Comparable
<
Roebling
>
{
@ExpectedGenericString
(
@ExpectedGenericString
(
"public int Roebling.compareTo(Roebling)"
)
value
=
"public int Roebling.compareTo(Roebling)"
,
bridgeValue
=
"public int Roebling.compareTo(java.lang.Object)"
)
public
int
compareTo
(
Roebling
r
)
{
public
int
compareTo
(
Roebling
r
)
{
throw
new
IllegalArgumentException
();
throw
new
IllegalArgumentException
();
}
}
...
@@ -154,9 +163,11 @@ interface TestInterface1 {
...
@@ -154,9 +163,11 @@ interface TestInterface1 {
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
@interface
ExpectedGenericString
{
@interface
ExpectedGenericString
{
String
value
();
String
value
();
String
bridgeValue
()
default
""
;
}
}
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
@interface
ExpectedString
{
@interface
ExpectedString
{
String
value
();
String
value
();
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录