Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
65694cd1
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
65694cd1
编写于
5月 20, 2009
作者:
J
jjg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6843648: tools/javac/versions/check.sh is broken
Reviewed-by: darcy
上级
70bd0ae1
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
43 addition
and
28 deletion
+43
-28
langtools/test/tools/javac/6341866/Anno.java
langtools/test/tools/javac/6341866/Anno.java
+1
-1
langtools/test/tools/javac/6464451/BigFinally.java
langtools/test/tools/javac/6464451/BigFinally.java
+1
-1
langtools/test/tools/javac/6464451/DeepNestedFinally.java
langtools/test/tools/javac/6464451/DeepNestedFinally.java
+1
-1
langtools/test/tools/javac/6464451/ManyExitsInTry.java
langtools/test/tools/javac/6464451/ManyExitsInTry.java
+1
-1
langtools/test/tools/javac/ClassLit.java
langtools/test/tools/javac/ClassLit.java
+1
-1
langtools/test/tools/javac/T6557865.java
langtools/test/tools/javac/T6557865.java
+2
-2
langtools/test/tools/javac/foreach/T6682380.java
langtools/test/tools/javac/foreach/T6682380.java
+1
-1
langtools/test/tools/javac/processing/6348499/A.java
langtools/test/tools/javac/processing/6348499/A.java
+1
-1
langtools/test/tools/javac/processing/6414633/A.java
langtools/test/tools/javac/processing/6414633/A.java
+1
-1
langtools/test/tools/javac/processing/6430209/b6341534.java
langtools/test/tools/javac/processing/6430209/b6341534.java
+1
-1
langtools/test/tools/javac/processing/T6439826.java
langtools/test/tools/javac/processing/T6439826.java
+1
-1
langtools/test/tools/javac/stackmap/T4955930.sh
langtools/test/tools/javac/stackmap/T4955930.sh
+1
-1
langtools/test/tools/javac/versions/check.sh
langtools/test/tools/javac/versions/check.sh
+30
-15
未找到文件。
langtools/test/tools/javac/6341866/Anno.java
浏览文件 @
65694cd1
...
...
@@ -27,7 +27,7 @@ import javax.lang.model.*;
import
javax.lang.model.element.*
;
@SupportedAnnotationTypes
(
"*"
)
@SupportedSourceVersion
(
SourceVersion
.
RELEASE_
6
)
@SupportedSourceVersion
(
SourceVersion
.
RELEASE_
7
)
public
class
Anno
extends
AbstractProcessor
{
public
boolean
process
(
Set
<?
extends
TypeElement
>
annotations
,
RoundEnvironment
roundEnv
)
{
...
...
langtools/test/tools/javac/6464451/BigFinally.java
浏览文件 @
65694cd1
...
...
@@ -26,7 +26,7 @@
* @bug 6464451
* @summary javac in 5.0ux can not compile try-finally block which has a lot of "return"
* @author Wei Tao
* @compile -target 5 BigFinally.java
* @compile -
source 5 -
target 5 BigFinally.java
* @clean BigFinally
* @compile/fail BigFinally.java
*/
...
...
langtools/test/tools/javac/6464451/DeepNestedFinally.java
浏览文件 @
65694cd1
...
...
@@ -26,7 +26,7 @@
* @bug 6464451
* @summary javac in 5.0ux can not compile try-finally block which has a lot of "return"
* @author Wei Tao
* @compile -target 5 DeepNestedFinally.java
* @compile -
source 5 -
target 5 DeepNestedFinally.java
* @clean DeepNestedFinally
* @compile/fail DeepNestedFinally.java
*/
...
...
langtools/test/tools/javac/6464451/ManyExitsInTry.java
浏览文件 @
65694cd1
...
...
@@ -26,7 +26,7 @@
* @bug 6464451
* @summary javac in 5.0ux can not compile try-finally block which has a lot of "return"
* @author Wei Tao
* @compile -target 5 ManyExitsInTry.java
* @compile -
source 5 -
target 5 ManyExitsInTry.java
* @clean ManyExitsInTry
* @compile/fail ManyExitsInTry.java
*/
...
...
langtools/test/tools/javac/ClassLit.java
浏览文件 @
65694cd1
...
...
@@ -27,7 +27,7 @@
* @summary Use ldc instruction for class literals
* @author gafter
*
* @compile -target 1.5 ClassLit.java
* @compile -
source 1.5 -
target 1.5 ClassLit.java
* @run main ClassLit
*/
...
...
langtools/test/tools/javac/T6557865.java
浏览文件 @
65694cd1
...
...
@@ -24,10 +24,10 @@
/*
* @test
* @bug 6557865
* @summary -target 5 should not put ACC_SYNTHETIC on package-info
* @summary -
source 5 -
target 5 should not put ACC_SYNTHETIC on package-info
* @author Wei Tao
* @compile T6557865.java
* @compile -target 5 T6232928/package-info.java
* @compile -
source 5 -
target 5 T6232928/package-info.java
* @run main T6557865
*/
...
...
langtools/test/tools/javac/foreach/T6682380.java
浏览文件 @
65694cd1
...
...
@@ -26,7 +26,7 @@
* @bug 6682380 6679509
* @summary Foreach loop with generics inside finally block crashes javac with -target 1.5
* @author Jan Lahoda, Maurizio Cimadamore
* @compile -target 1.5 T6682380.java
* @compile -
source 1.5 -
target 1.5 T6682380.java
*/
import
java.util.List
;
...
...
langtools/test/tools/javac/processing/6348499/A.java
浏览文件 @
65694cd1
...
...
@@ -28,7 +28,7 @@ import javax.lang.model.*;
import
javax.lang.model.element.*
;
@SupportedAnnotationTypes
(
"*"
)
@SupportedSourceVersion
(
SourceVersion
.
RELEASE_
6
)
@SupportedSourceVersion
(
SourceVersion
.
RELEASE_
7
)
public
class
A
extends
AbstractProcessor
{
public
boolean
process
(
Set
<?
extends
TypeElement
>
tes
,
RoundEnvironment
renv
)
{
Filer
filer
=
processingEnv
.
getFiler
();
...
...
langtools/test/tools/javac/processing/6414633/A.java
浏览文件 @
65694cd1
...
...
@@ -30,7 +30,7 @@ import javax.lang.model.element.*;
import
javax.tools.*
;
@SupportedAnnotationTypes
(
"*"
)
@SupportedSourceVersion
(
SourceVersion
.
RELEASE_
6
)
@SupportedSourceVersion
(
SourceVersion
.
RELEASE_
7
)
public
class
A
extends
AbstractProcessor
{
public
boolean
process
(
Set
<?
extends
TypeElement
>
annotations
,
RoundEnvironment
roundEnv
)
{
...
...
langtools/test/tools/javac/processing/6430209/b6341534.java
浏览文件 @
65694cd1
...
...
@@ -30,7 +30,7 @@ import java.util.*;
import
java.util.Set
;
@SupportedAnnotationTypes
({
"*"
})
@SupportedSourceVersion
(
javax
.
lang
.
model
.
SourceVersion
.
RELEASE_
6
)
@SupportedSourceVersion
(
javax
.
lang
.
model
.
SourceVersion
.
RELEASE_
7
)
public
class
b6341534
extends
AbstractProcessor
{
static
int
r
=
0
;
static
Elements
E
=
null
;
...
...
langtools/test/tools/javac/processing/T6439826.java
浏览文件 @
65694cd1
...
...
@@ -39,7 +39,7 @@ import static javax.lang.model.util.ElementFilter.*;
@SupportedAnnotationTypes
(
"*"
)
@SupportedSourceVersion
(
SourceVersion
.
RELEASE_
6
)
@SupportedSourceVersion
(
SourceVersion
.
RELEASE_
7
)
public
class
T6439826
extends
AbstractProcessor
{
public
static
void
main
(
String
...
args
)
{
String
testSrc
=
System
.
getProperty
(
"test.src"
,
"."
);
...
...
langtools/test/tools/javac/stackmap/T4955930.sh
浏览文件 @
65694cd1
...
...
@@ -56,7 +56,7 @@ esac
TMP1
=
T4955930.javap
cp
"
${
TESTSRC
}${
FS
}
T4955930.java"
.
"
${
TESTJAVA
}${
FS
}
bin
${
FS
}
javac"
${
TESTTOOLVMOPTS
}
-target
6 T4955930.java
"
${
TESTJAVA
}${
FS
}
bin
${
FS
}
javac"
${
TESTTOOLVMOPTS
}
-
source
6
-
target
6 T4955930.java
result
=
$?
if
[
$result
-ne
0
]
then
...
...
langtools/test/tools/javac/versions/check.sh
浏览文件 @
65694cd1
...
...
@@ -24,9 +24,8 @@
# @test
# @bug 4981566 5028634 5094412 6304984
# @summary Check interpretation of -target and -source options
#
# @build CheckClassFileVersion
# @run shell check.sh
# @run shell check.sh
TESTJAVA
=
${
TESTJAVA
:?
}
TC
=
${
TESTCLASSES
-.
}
...
...
@@ -48,19 +47,26 @@ check() {
$JC
${
TESTTOOLVMOPTS
}
-d
$TC
$*
$TC
/X.java
&&
$CFV
$TC
/X.class
$V
||
exit
2
}
check 50.0
check 48.0
-source
1.4
check 49.0
-source
1.4
-target
1.5
check 49.0
-target
1.5
check 50.0
-source
1.5
check 50.0
-target
1.6
check 50.0
-target
6
check 50.0
-source
1.6
check 50.0
-source
6
check 51.0
-target
1.7
check 51.0
-target
7
check 49.0
-source
1.5
-target
1.5
check 50.0
-source
1.4
-target
1.6
check 50.0
-source
1.5
-target
1.6
check 50.0
-source
1.6
-target
1.6
check 50.0
-source
1.6
-target
6
check 50.0
-source
6
-target
1.6
check 50.0
-source
6
-target
6
check 51.0
check 51.0
-source
1.5
check 51.0
-source
1.6
check 51.0
-source
6
check 51.0
-source
1.7
check 51.0
-source
7
check 51.0
-target
1.7
check 51.0
-target
7
# Check source versions
...
...
@@ -85,21 +91,30 @@ pass() {
fi
}
# the following need to be updated when -source 7 features are available
checksrc14
()
{
pass
$*
$TC
/X.java
;
fail
$*
$TC
/Y.java
;
}
checksrc15
()
{
pass
$*
$TC
/X.java
;
pass
$*
$TC
/Y.java
;
}
checksrc16
()
{
checksrc15
$*
;
}
checksrc17
()
{
checksrc15
$*
;
}
checksrc14
-source
1.4
checksrc14
-source
1.4
-target
1.5
checksrc15
checksrc15
-target
1.5
checksrc15
-source
1.5
checksrc15
-source
1.5
-target
1.5
checksrc16
-target
1.6
checksrc16
-target
6
checksrc16
-source
1.6
checksrc16
-source
6
checksrc16
-source
1.6
-target
1.6
checksrc16
-source
6
-target
6
checksrc17
checksrc17
-target
1.7
checksrc17
-target
7
checksrc17
-source
1.7
checksrc17
-source
7
checksrc17
-source
1.7
-target
1.7
checksrc17
-source
7
-target
7
fail
-source
1.5
-target
1.4
$TC
/X.java
fail
-source
1.6
-target
1.4
$TC
/X.java
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录