Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
1d24e071
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看板
提交
1d24e071
编写于
5月 20, 2009
作者:
J
jjg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6827026: Change javac source and target default to 7
Reviewed-by: darcy, ohair
上级
da3591c2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
23 addition
and
4 deletion
+23
-4
make/Makefile
make/Makefile
+8
-0
make/build.properties
make/build.properties
+4
-2
make/build.xml
make/build.xml
+9
-0
src/share/classes/com/sun/tools/javac/code/Source.java
src/share/classes/com/sun/tools/javac/code/Source.java
+1
-1
src/share/classes/com/sun/tools/javac/jvm/Target.java
src/share/classes/com/sun/tools/javac/jvm/Target.java
+1
-1
未找到文件。
make/Makefile
浏览文件 @
1d24e071
...
...
@@ -115,6 +115,14 @@ else
endif
endif
ifdef
SOURCE_LANGUAGE_VERSION
ANT_OPTIONS
+=
-Djavac
.source
=
$(SOURCE_LANGUAGE_VERSION)
else
ifdef
JAVAC_SOURCE_ARG
ANT_OPTIONS
+=
-Djavac
.source
=
$(JAVAC_SOURCE_ARG)
endif
endif
ifdef
ALT_BOOTDIR
ANT_OPTIONS
+=
-Dboot
.java.home
=
$(ALT_BOOTDIR)
ANT_JAVA_HOME
=
JAVA_HOME
=
$(ALT_BOOTDIR)
...
...
make/build.properties
浏览文件 @
1d24e071
...
...
@@ -32,7 +32,8 @@
# boot.java.home = /opt/jdk/1.5.0
boot.java
=
${boot.java.home}/bin/java
boot.javac
=
${boot.java.home}/bin/javac
boot.javac.target
=
5
boot.javac.source
=
6
boot.javac.target
=
6
# This is the JDK used to run the product version of the tools,
# for example, for testing. If you're building a complete JDK, specify that.
...
...
@@ -59,7 +60,8 @@ full.version = ${release}-${build.number}
bootstrap.full.version
=
${bootstrap.release}-${build.number}
# options for the <javac> tasks used to compile the tools
javac.target
=
6
javac.source
=
5
javac.target
=
5
javac.debug
=
true
javac.debuglevel
=
source,lines
javac.no.jdk.warnings
=
-XDignore.symbol.file=true
...
...
make/build.xml
浏览文件 @
1d24e071
...
...
@@ -393,6 +393,7 @@
<attribute
name=
"java"
default=
"java"
/>
<attribute
name=
"javac.bootclasspath"
default=
"-J-Xbootclasspath/p:${build.bootstrap.dir}/classes"
/>
<attribute
name=
"javac.java.home"
default=
"${boot.java.home}"
/>
<attribute
name=
"javac.source"
default=
"${javac.source}"
/>
<attribute
name=
"javac.target"
default=
"${javac.target}"
/>
<attribute
name=
"jarmainclass"
default=
"com.sun.tools.@{name}.Main"
/>
<attribute
name=
"jarclasspath"
default=
""
/>
...
...
@@ -411,6 +412,7 @@
release=
"@{release}"
full.version=
"@{full.version}"
javac.bootclasspath=
"@{javac.bootclasspath}"
javac.source=
"@{javac.source}"
javac.target=
"@{javac.target}"
/>
<mkdir
dir=
"@{bin.dir}"
/>
...
...
@@ -435,6 +437,7 @@
<attribute
name=
"lib.dir"
default=
"${dist.lib.dir}"
/>
<attribute
name=
"javac.bootclasspath"
default=
"-J-Xbootclasspath/p:${build.bootstrap.dir}/classes"
/>
<attribute
name=
"javac.java.home"
default=
"${boot.java.home}"
/>
<attribute
name=
"javac.source"
default=
"${javac.source}"
/>
<attribute
name=
"javac.target"
default=
"${javac.target}"
/>
<attribute
name=
"jarmainclass"
default=
"com.sun.tools.@{name}.Main"
/>
<attribute
name=
"jarclasspath"
default=
""
/>
...
...
@@ -450,6 +453,7 @@
release=
"@{release}"
full.version=
"@{full.version}"
javac.bootclasspath=
"@{javac.bootclasspath}"
javac.source=
"@{javac.source}"
javac.target=
"@{javac.target}"
/>
<mkdir
dir=
"@{lib.dir}"
/>
...
...
@@ -474,6 +478,7 @@
<attribute
name=
"gensrc.dir"
default=
"${build.gensrc.dir}"
/>
<attribute
name=
"javac.bootclasspath"
default=
"${build.bootstrap.dir}/classes"
/>
<attribute
name=
"javac.java.home"
default=
"${boot.java.home}"
/>
<attribute
name=
"javac.source"
default=
"${javac.source}"
/>
<attribute
name=
"javac.target"
default=
"${javac.target}"
/>
<attribute
name=
"release"
default=
"${release}"
/>
<attribute
name=
"full.version"
default=
"${full.version}"
/>
...
...
@@ -502,6 +507,7 @@
includes=
"@{includes}"
sourcepath=
""
includeAntRuntime=
"no"
source=
"@{javac.source}"
target=
"@{javac.target}"
>
<compilerarg
value=
"-J-Xbootclasspath/p:@{javac.bootclasspath}"
/>
<compilerarg
line=
"${javac.version.opt}"
/>
...
...
@@ -515,6 +521,7 @@
excludes=
"@{excludes}"
sourcepath=
""
includeAntRuntime=
"no"
source=
"@{javac.source}"
target=
"@{javac.target}"
debug=
"${javac.debug}"
debuglevel=
"${javac.debuglevel}"
>
...
...
@@ -540,6 +547,7 @@
<target
name=
"-def-build-bootstrap-tool"
depends=
"-check-boot.java.home,-def-build-tool"
>
<presetdef
name=
"build-bootstrap-tool"
>
<build-tool
javac.source=
"${boot.javac.source}"
javac.target=
"${boot.javac.target}"
gensrc.dir=
"${build.bootstrap.dir}/gensrc"
classes.dir=
"${build.bootstrap.dir}/classes"
...
...
@@ -555,6 +563,7 @@
<target
name=
"-def-build-bootstrap-jar"
depends=
"-def-build-jar"
>
<presetdef
name=
"build-bootstrap-jar"
>
<build-jar
javac.source=
"${boot.javac.source}"
javac.target=
"${boot.javac.target}"
gensrc.dir=
"${build.bootstrap.dir}/gensrc"
classes.dir=
"${build.bootstrap.dir}/classes"
...
...
src/share/classes/com/sun/tools/javac/code/Source.java
浏览文件 @
1d24e071
...
...
@@ -95,7 +95,7 @@ public enum Source {
this
.
name
=
name
;
}
public
static
final
Source
DEFAULT
=
JDK1_
5
;
public
static
final
Source
DEFAULT
=
JDK1_
7
;
public
static
Source
lookup
(
String
name
)
{
return
tab
.
get
(
name
);
...
...
src/share/classes/com/sun/tools/javac/jvm/Target.java
浏览文件 @
1d24e071
...
...
@@ -108,7 +108,7 @@ public enum Target {
this
.
minorVersion
=
minorVersion
;
}
public
static
final
Target
DEFAULT
=
JDK1_
6
;
public
static
final
Target
DEFAULT
=
JDK1_
7
;
public
static
Target
lookup
(
String
name
)
{
return
tab
.
get
(
name
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录