Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
4806b4fa
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看板
提交
4806b4fa
编写于
8月 10, 2013
作者:
V
vromero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6983297: methods missing from NewArrayTree
Reviewed-by: jjg
上级
0c16e8c8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
17 addition
and
8 deletion
+17
-8
src/share/classes/com/sun/source/tree/NewArrayTree.java
src/share/classes/com/sun/source/tree/NewArrayTree.java
+3
-1
src/share/classes/com/sun/source/util/TreeScanner.java
src/share/classes/com/sun/source/util/TreeScanner.java
+4
-0
src/share/classes/com/sun/tools/javac/tree/JCTree.java
src/share/classes/com/sun/tools/javac/tree/JCTree.java
+10
-0
test/tools/javac/tree/SourceTreeScannerTest.java
test/tools/javac/tree/SourceTreeScannerTest.java
+0
-7
未找到文件。
src/share/classes/com/sun/source/tree/NewArrayTree.java
浏览文件 @
4806b4fa
...
...
@@ -25,7 +25,7 @@
package
com.sun.source.tree
;
import
java
.util.List
;
import
com.sun.tools.javac
.util.List
;
/**
* A tree node for an expression to create a new instance of an array.
...
...
@@ -48,4 +48,6 @@ public interface NewArrayTree extends ExpressionTree {
Tree
getType
();
List
<?
extends
ExpressionTree
>
getDimensions
();
List
<?
extends
ExpressionTree
>
getInitializers
();
List
<?
extends
AnnotationTree
>
getAnnotations
();
List
<?
extends
List
<?
extends
AnnotationTree
>>
getDimAnnotations
();
}
src/share/classes/com/sun/source/util/TreeScanner.java
浏览文件 @
4806b4fa
...
...
@@ -285,6 +285,10 @@ public class TreeScanner<R,P> implements TreeVisitor<R,P> {
R
r
=
scan
(
node
.
getType
(),
p
);
r
=
scanAndReduce
(
node
.
getDimensions
(),
p
,
r
);
r
=
scanAndReduce
(
node
.
getInitializers
(),
p
,
r
);
r
=
scanAndReduce
(
node
.
getAnnotations
(),
p
,
r
);
for
(
Iterable
<
?
extends
Tree
>
dimAnno
:
node
.
getDimAnnotations
())
{
r
=
scanAndReduce
(
dimAnno
,
p
,
r
);
}
return
r
;
}
...
...
src/share/classes/com/sun/tools/javac/tree/JCTree.java
浏览文件 @
4806b4fa
...
...
@@ -1571,6 +1571,16 @@ public abstract class JCTree implements Tree, Cloneable, DiagnosticPosition {
public
Tag
getTag
()
{
return
NEWARRAY
;
}
@Override
public
List
<
JCAnnotation
>
getAnnotations
()
{
return
annotations
;
}
@Override
public
List
<
List
<
JCAnnotation
>>
getDimAnnotations
()
{
return
dimAnnotations
;
}
}
/**
...
...
test/tools/javac/tree/SourceTreeScannerTest.java
浏览文件 @
4806b4fa
...
...
@@ -140,13 +140,6 @@ public class SourceTreeScannerTest extends AbstractTreeScannerTest {
// not part of public API
continue
;
}
if
(
JCTree
.
JCNewArray
.
class
.
isAssignableFrom
(
tree
.
getClass
())
&&
(
f
.
getName
().
equals
(
"annotations"
)
||
f
.
getName
().
equals
(
"dimAnnotations"
)))
{
// these fields are incorrectly missing from the public API
// (CR 6983297)
continue
;
}
try
{
//System.err.println("FIELD: " + f.getName());
reflectiveScan
(
f
.
get
(
tree
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录