Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
717be173
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看板
提交
717be173
编写于
8月 08, 2009
作者:
J
jjg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6868548: remove spurious ';' from after constant pool entries
Reviewed-by: ksrini
上级
dbc30f0b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
16 deletion
+16
-16
src/share/classes/com/sun/tools/javap/CodeWriter.java
src/share/classes/com/sun/tools/javap/CodeWriter.java
+4
-4
src/share/classes/com/sun/tools/javap/ConstantWriter.java
src/share/classes/com/sun/tools/javap/ConstantWriter.java
+11
-11
test/tools/javac/code/ArrayClone.java
test/tools/javac/code/ArrayClone.java
+1
-1
未找到文件。
src/share/classes/com/sun/tools/javap/CodeWriter.java
浏览文件 @
717be173
...
...
@@ -140,7 +140,7 @@ class CodeWriter extends BasicWriter {
}
public
Void
visitConstantPoolRef
(
Instruction
instr
,
int
index
,
Void
p
)
{
print
(
"#"
+
index
+
";"
);
print
(
"#"
+
index
);
tab
();
print
(
"// "
);
printConstant
(
index
);
...
...
@@ -148,7 +148,7 @@ class CodeWriter extends BasicWriter {
}
public
Void
visitConstantPoolRefAndValue
(
Instruction
instr
,
int
index
,
int
value
,
Void
p
)
{
print
(
"#"
+
index
+
", "
+
value
+
";"
);
print
(
"#"
+
index
+
", "
+
value
);
tab
();
print
(
"// "
);
printConstant
(
index
);
...
...
@@ -170,7 +170,7 @@ class CodeWriter extends BasicWriter {
print
(
"{ // "
+
npairs
);
indent
(+
1
);
for
(
int
i
=
0
;
i
<
npairs
;
i
++)
{
print
(
"\n"
+
matches
[
i
]
+
": "
+
(
pc
+
offsets
[
i
])
+
";"
);
print
(
"\n"
+
matches
[
i
]
+
": "
+
(
pc
+
offsets
[
i
]));
}
print
(
"\ndefault: "
+
(
pc
+
default_
)
+
" }"
);
indent
(-
1
);
...
...
@@ -182,7 +182,7 @@ class CodeWriter extends BasicWriter {
print
(
"{ //"
+
low
+
" to "
+
high
);
indent
(+
1
);
for
(
int
i
=
0
;
i
<
offsets
.
length
;
i
++)
{
print
(
"\n"
+
(
low
+
i
)
+
": "
+
(
pc
+
offsets
[
i
])
+
";"
);
print
(
"\n"
+
(
low
+
i
)
+
": "
+
(
pc
+
offsets
[
i
]));
}
print
(
"\ndefault: "
+
(
pc
+
default_
)
+
" }"
);
indent
(-
1
);
...
...
src/share/classes/com/sun/tools/javap/ConstantWriter.java
浏览文件 @
717be173
...
...
@@ -62,69 +62,69 @@ public class ConstantWriter extends BasicWriter {
protected
void
writeConstantPool
(
ConstantPool
constant_pool
)
{
ConstantPool
.
Visitor
<
Integer
,
Void
>
v
=
new
ConstantPool
.
Visitor
<
Integer
,
Void
>()
{
public
Integer
visitClass
(
CONSTANT_Class_info
info
,
Void
p
)
{
print
(
"#"
+
info
.
name_index
+
";"
);
print
(
"#"
+
info
.
name_index
);
tab
();
println
(
"// "
+
stringValue
(
info
));
return
1
;
}
public
Integer
visitDouble
(
CONSTANT_Double_info
info
,
Void
p
)
{
println
(
stringValue
(
info
)
+
";"
);
println
(
stringValue
(
info
));
return
2
;
}
public
Integer
visitFieldref
(
CONSTANT_Fieldref_info
info
,
Void
p
)
{
print
(
"#"
+
info
.
class_index
+
".#"
+
info
.
name_and_type_index
+
";"
);
print
(
"#"
+
info
.
class_index
+
".#"
+
info
.
name_and_type_index
);
tab
();
println
(
"// "
+
stringValue
(
info
));
return
1
;
}
public
Integer
visitFloat
(
CONSTANT_Float_info
info
,
Void
p
)
{
println
(
stringValue
(
info
)
+
";"
);
println
(
stringValue
(
info
));
return
1
;
}
public
Integer
visitInteger
(
CONSTANT_Integer_info
info
,
Void
p
)
{
println
(
stringValue
(
info
)
+
";"
);
println
(
stringValue
(
info
));
return
1
;
}
public
Integer
visitInterfaceMethodref
(
CONSTANT_InterfaceMethodref_info
info
,
Void
p
)
{
print
(
"#"
+
info
.
class_index
+
".#"
+
info
.
name_and_type_index
+
";"
);
print
(
"#"
+
info
.
class_index
+
".#"
+
info
.
name_and_type_index
);
tab
();
println
(
"// "
+
stringValue
(
info
));
return
1
;
}
public
Integer
visitLong
(
CONSTANT_Long_info
info
,
Void
p
)
{
println
(
stringValue
(
info
)
+
";"
);
println
(
stringValue
(
info
));
return
2
;
}
public
Integer
visitNameAndType
(
CONSTANT_NameAndType_info
info
,
Void
p
)
{
print
(
"#"
+
info
.
name_index
+
":#"
+
info
.
type_index
+
";"
);
print
(
"#"
+
info
.
name_index
+
":#"
+
info
.
type_index
);
tab
();
println
(
"// "
+
stringValue
(
info
));
return
1
;
}
public
Integer
visitMethodref
(
CONSTANT_Methodref_info
info
,
Void
p
)
{
print
(
"#"
+
info
.
class_index
+
".#"
+
info
.
name_and_type_index
+
";"
);
print
(
"#"
+
info
.
class_index
+
".#"
+
info
.
name_and_type_index
);
tab
();
println
(
"// "
+
stringValue
(
info
));
return
1
;
}
public
Integer
visitString
(
CONSTANT_String_info
info
,
Void
p
)
{
print
(
"#"
+
info
.
string_index
+
";"
);
print
(
"#"
+
info
.
string_index
);
tab
();
println
(
"// "
+
stringValue
(
info
));
return
1
;
}
public
Integer
visitUtf8
(
CONSTANT_Utf8_info
info
,
Void
p
)
{
println
(
stringValue
(
info
)
+
";"
);
println
(
stringValue
(
info
));
return
1
;
}
...
...
test/tools/javac/code/ArrayClone.java
浏览文件 @
717be173
...
...
@@ -48,7 +48,7 @@ public class ArrayClone {
System
.
out
.
println
(
out
);
for
(
String
line:
out
.
split
(
"\n"
))
{
String
match
=
"[ \t]+[0-9]+:[ \t]+invokevirtual[ \t]+#[0-9]+
;
[ \t]+// Method \"\\[Ljava/lang/String;\".clone:\\(\\)Ljava/lang/Object;"
;
String
match
=
"[ \t]+[0-9]+:[ \t]+invokevirtual[ \t]+#[0-9]+[ \t]+// Method \"\\[Ljava/lang/String;\".clone:\\(\\)Ljava/lang/Object;"
;
if
(
line
.
matches
(
match
))
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录