Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
d5e39462
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看板
提交
d5e39462
编写于
1月 31, 2013
作者:
L
lana
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
1ea3c7a0
871885d9
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
16 deletion
+9
-16
test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest1.java
...ns/typeAnnotations/classfile/CombinationsTargetTest1.java
+3
-6
test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest2.java
...ns/typeAnnotations/classfile/CombinationsTargetTest2.java
+3
-6
test/tools/javac/annotations/typeAnnotations/newlocations/RepeatingTypeAnnotations.java
...ypeAnnotations/newlocations/RepeatingTypeAnnotations.java
+0
-1
test/tools/javac/annotations/typeAnnotations/referenceinfos/Driver.java
...ac/annotations/typeAnnotations/referenceinfos/Driver.java
+3
-3
未找到文件。
test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest1.java
浏览文件 @
d5e39462
...
...
@@ -174,22 +174,20 @@ public class CombinationsTargetTest1 extends ClassfileTestHelper {
String
sourceBase
=
new
String
(
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,_OTHER_})\n"
+
"@
ContainedBy
( AC.class )\n"
+
"@
Repeatable
( AC.class )\n"
+
"@interface A { }\n\n"
+
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,_OTHER_})\n"
+
"@ContainerFor(A.class)\n"
+
"@interface AC { A[] value(); }\n\n"
+
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,_OTHER_})\n"
+
"@
ContainedBy
( BC.class )\n"
+
"@
Repeatable
( BC.class )\n"
+
"@interface B { }\n\n"
+
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,_OTHER_})\n"
+
"@ContainerFor(B.class)\n"
+
"@interface BC { B[] value(); } \n\n"
+
"@Retention("
+
retentn
+
")\n"
+
...
...
@@ -198,12 +196,11 @@ public class CombinationsTargetTest1 extends ClassfileTestHelper {
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,TYPE_PARAMETER,_OTHER_})\n"
+
"@
ContainedBy
(DC.class)\n"
+
"@
Repeatable
(DC.class)\n"
+
"@interface D { }\n\n"
+
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,TYPE_PARAMETER,_OTHER_})\n"
+
"@ContainerFor(D.class) \n"
+
"@interface DC { D[] value(); }\n\n"
);
// Test case sources with sample generated source.
...
...
test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest2.java
浏览文件 @
d5e39462
...
...
@@ -171,32 +171,29 @@ public class CombinationsTargetTest2 extends ClassfileTestHelper {
String
sourceBase
=
new
String
(
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,_OTHER_})\n"
+
"@
ContainedBy
( AC.class )\n"
+
"@
Repeatable
( AC.class )\n"
+
"@interface A { }\n\n"
+
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,_OTHER_})\n"
+
"@ContainerFor(A.class)\n"
+
"@interface AC { A[] value(); }\n\n"
+
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,_OTHER_})\n"
+
"@
ContainedBy
( BC.class )\n"
+
"@
Repeatable
( BC.class )\n"
+
"@interface B { }\n\n"
+
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,_OTHER_})\n"
+
"@ContainerFor(B.class)\n"
+
"@interface BC { B[] value(); } \n\n"
+
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,TYPE_PARAMETER,_OTHER_})\n"
+
"@
ContainedBy
(DC.class)\n"
+
"@
Repeatable
(DC.class)\n"
+
"@interface D { }\n\n"
+
"@Retention("
+
retentn
+
")\n"
+
"@Target({TYPE_USE,TYPE_PARAMETER,_OTHER_})\n"
+
"@ContainerFor(D.class) \n"
+
"@interface DC { D[] value(); }\n\n"
);
// Test case sources with sample generated source
...
...
test/tools/javac/annotations/typeAnnotations/newlocations/RepeatingTypeAnnotations.java
浏览文件 @
d5e39462
...
...
@@ -120,7 +120,6 @@ class MyList<E> { }
@Target
({
ElementType
.
TYPE_USE
,
ElementType
.
TYPE_PARAMETER
})
@interface
RTA
{
}
@ContainerFor
(
RTA
.
class
)
@Target
({
ElementType
.
TYPE_USE
,
ElementType
.
TYPE_PARAMETER
})
@interface
RTAs
{
RTA
[]
value
();
...
...
test/tools/javac/annotations/typeAnnotations/referenceinfos/Driver.java
浏览文件 @
d5e39462
/*
* Copyright (c) 2009 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009
, 2013
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
...
...
@@ -241,8 +241,8 @@ public class Driver {
sb
.
append
(
"\n@Repeatable(RTAs.class) @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) @interface RTA {}"
);
sb
.
append
(
"\n@Repeatable(RTBs.class) @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) @interface RTB {}"
);
sb
.
append
(
"\n@
ContainerFor(RTA.class) @
Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) @interface RTAs { RTA[] value(); }"
);
sb
.
append
(
"\n@
ContainerFor(RTB.class) @
Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) @interface RTBs { RTB[] value(); }"
);
sb
.
append
(
"\n@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) @interface RTAs { RTA[] value(); }"
);
sb
.
append
(
"\n@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) @interface RTBs { RTB[] value(); }"
);
sb
.
append
(
"\n@Target(value={ElementType.TYPE,ElementType.FIELD,ElementType.METHOD,ElementType.PARAMETER,ElementType.CONSTRUCTOR,ElementType.LOCAL_VARIABLE})"
);
sb
.
append
(
"\n@interface Decl {}"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录