Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
f79d7450
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看板
提交
f79d7450
编写于
4月 03, 2011
作者:
K
ksrini
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7028405: (javac) remove unused JSR-292 code
Reviewed-by: jrose, mcimadamore
上级
d46e6098
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
5 addition
and
14 deletion
+5
-14
src/share/classes/com/sun/tools/javac/code/Symtab.java
src/share/classes/com/sun/tools/javac/code/Symtab.java
+0
-5
src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
+1
-2
src/share/classes/com/sun/tools/javac/jvm/ClassReader.java
src/share/classes/com/sun/tools/javac/jvm/ClassReader.java
+1
-2
src/share/classes/com/sun/tools/javac/util/Names.java
src/share/classes/com/sun/tools/javac/util/Names.java
+0
-2
test/tools/javac/meth/InvokeMH.java
test/tools/javac/meth/InvokeMH.java
+1
-1
test/tools/javac/meth/TestCP.java
test/tools/javac/meth/TestCP.java
+1
-1
test/tools/javac/meth/XlintWarn.java
test/tools/javac/meth/XlintWarn.java
+1
-1
未找到文件。
src/share/classes/com/sun/tools/javac/code/Symtab.java
浏览文件 @
f79d7450
...
...
@@ -125,9 +125,7 @@ public class Symtab {
public
final
Type
stringBuilderType
;
public
final
Type
cloneableType
;
public
final
Type
serializableType
;
public
final
Type
transientMethodHandleType
;
// transient - 292
public
final
Type
methodHandleType
;
public
final
Type
transientPolymorphicSignatureType
;
// transient - 292
public
final
Type
polymorphicSignatureType
;
public
final
Type
throwableType
;
public
final
Type
errorType
;
...
...
@@ -436,9 +434,7 @@ public class Symtab {
cloneableType
=
enterClass
(
"java.lang.Cloneable"
);
throwableType
=
enterClass
(
"java.lang.Throwable"
);
serializableType
=
enterClass
(
"java.io.Serializable"
);
transientMethodHandleType
=
enterClass
(
"java.dyn.MethodHandle"
);
// transient - 292
methodHandleType
=
enterClass
(
"java.lang.invoke.MethodHandle"
);
transientPolymorphicSignatureType
=
enterClass
(
"java.dyn.MethodHandle$PolymorphicSignature"
);
// transient - 292
polymorphicSignatureType
=
enterClass
(
"java.lang.invoke.MethodHandle$PolymorphicSignature"
);
errorType
=
enterClass
(
"java.lang.Error"
);
illegalArgumentExceptionType
=
enterClass
(
"java.lang.IllegalArgumentException"
);
...
...
@@ -485,7 +481,6 @@ public class Symtab {
synthesizeEmptyInterfaceIfMissing
(
autoCloseableType
);
synthesizeEmptyInterfaceIfMissing
(
cloneableType
);
synthesizeEmptyInterfaceIfMissing
(
serializableType
);
synthesizeEmptyInterfaceIfMissing
(
transientPolymorphicSignatureType
);
// transient - 292
synthesizeEmptyInterfaceIfMissing
(
polymorphicSignatureType
);
synthesizeBoxTypeIfMissing
(
doubleType
);
synthesizeBoxTypeIfMissing
(
floatType
);
...
...
src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
浏览文件 @
f79d7450
...
...
@@ -788,8 +788,7 @@ public class MemberEnter extends JCTree.Visitor implements Completer {
// Internally to java.lang.invoke, a @PolymorphicSignature annotation
// acts like a classfile attribute.
if
(!
c
.
type
.
isErroneous
()
&&
(
types
.
isSameType
(
c
.
type
,
syms
.
polymorphicSignatureType
)
||
types
.
isSameType
(
c
.
type
,
syms
.
transientPolymorphicSignatureType
)))
{
types
.
isSameType
(
c
.
type
,
syms
.
polymorphicSignatureType
))
{
if
(!
target
.
hasMethodHandles
())
{
// Somebody is compiling JDK7 source code to a JDK6 target.
// Make it an error, since it is unlikely but important.
...
...
src/share/classes/com/sun/tools/javac/jvm/ClassReader.java
浏览文件 @
f79d7450
...
...
@@ -1321,8 +1321,7 @@ public class ClassReader implements Completer {
else
proxies
.
append
(
proxy
);
if
(
majorVersion
>=
V51
.
major
&&
(
proxy
.
type
.
tsym
==
syms
.
polymorphicSignatureType
.
tsym
||
proxy
.
type
.
tsym
==
syms
.
transientPolymorphicSignatureType
.
tsym
))
{
proxy
.
type
.
tsym
==
syms
.
polymorphicSignatureType
.
tsym
)
{
sym
.
flags_field
|=
POLYMORPHIC_SIGNATURE
;
}
}
...
...
src/share/classes/com/sun/tools/javac/util/Names.java
浏览文件 @
f79d7450
...
...
@@ -73,7 +73,6 @@ public class Names {
public
final
Name
java_io_Serializable
;
public
final
Name
serialVersionUID
;
public
final
Name
java_lang_Enum
;
public
final
Name
transient_java_dyn_MethodHandle
;
// transient - 292
public
final
Name
java_lang_invoke_MethodHandle
;
public
final
Name
package_info
;
public
final
Name
ConstantValue
;
...
...
@@ -184,7 +183,6 @@ public class Names {
java_lang_Cloneable
=
fromString
(
"java.lang.Cloneable"
);
java_io_Serializable
=
fromString
(
"java.io.Serializable"
);
java_lang_Enum
=
fromString
(
"java.lang.Enum"
);
transient_java_dyn_MethodHandle
=
fromString
(
"java.dyn.MethodHandle"
);
//transient - 292
java_lang_invoke_MethodHandle
=
fromString
(
"java.lang.invoke.MethodHandle"
);
package_info
=
fromString
(
"package-info"
);
serialVersionUID
=
fromString
(
"serialVersionUID"
);
...
...
test/tools/javac/meth/InvokeMH.java
浏览文件 @
f79d7450
...
...
@@ -42,7 +42,7 @@
package
meth
;
import
java.
dyn
.MethodHandle
;
import
java.
lang.invoke
.MethodHandle
;
public
class
InvokeMH
{
void
test
(
MethodHandle
mh_SiO
,
...
...
test/tools/javac/meth/TestCP.java
浏览文件 @
f79d7450
...
...
@@ -35,7 +35,7 @@ import com.sun.tools.classfile.Code_attribute;
import
com.sun.tools.classfile.ConstantPool.*
;
import
com.sun.tools.classfile.Method
;
import
java.
dyn
.*
;
import
java.
lang.invoke
.*
;
import
java.io.*
;
public
class
TestCP
{
...
...
test/tools/javac/meth/XlintWarn.java
浏览文件 @
f79d7450
...
...
@@ -30,7 +30,7 @@
* @compile -Werror -Xlint:cast XlintWarn.java
*/
import
java.
dyn
.*
;
import
java.
lang.invoke
.*
;
class
XlintWarn
{
void
test
(
MethodHandle
mh
)
throws
Throwable
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录