Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
89ddb230
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
89ddb230
编写于
9月 08, 2016
作者:
L
lana
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
e3592ab4
1047fd0e
变更
80
隐藏空白更改
内联
并排
Showing
80 changed file
with
167 addition
and
142 deletion
+167
-142
langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java
.../share/classes/com/sun/tools/javac/main/JavaCompiler.java
+8
-8
langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Option.java
...mpiler/share/classes/com/sun/tools/javac/main/Option.java
+16
-19
langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/options/Options.java
...r/share/classes/com/sun/tools/sjavac/options/Options.java
+1
-1
langtools/src/jdk.jshell/share/classes/jdk/jshell/ReplParser.java
...s/src/jdk.jshell/share/classes/jdk/jshell/ReplParser.java
+0
-18
langtools/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java
...hell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java
+25
-2
langtools/src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java
.../src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java
+1
-1
langtools/test/jdk/jshell/CompletionSuggestionTest.java
langtools/test/jdk/jshell/CompletionSuggestionTest.java
+23
-1
langtools/test/jdk/jshell/RejectedFailedTest.java
langtools/test/jdk/jshell/RejectedFailedTest.java
+2
-1
langtools/test/tools/javac/ClassFileModifiers/ClassModifiers.java
...s/test/tools/javac/ClassFileModifiers/ClassModifiers.java
+1
-1
langtools/test/tools/javac/ClassFileModifiers/MemberModifiers.java
.../test/tools/javac/ClassFileModifiers/MemberModifiers.java
+1
-1
langtools/test/tools/javac/Diagnostics/6722234/T6722234a.java
...tools/test/tools/javac/Diagnostics/6722234/T6722234a.java
+2
-2
langtools/test/tools/javac/Diagnostics/6722234/T6722234b.java
...tools/test/tools/javac/Diagnostics/6722234/T6722234b.java
+2
-2
langtools/test/tools/javac/Diagnostics/6722234/T6722234c.java
...tools/test/tools/javac/Diagnostics/6722234/T6722234c.java
+1
-1
langtools/test/tools/javac/Diagnostics/6722234/T6722234d.java
...tools/test/tools/javac/Diagnostics/6722234/T6722234d.java
+2
-2
langtools/test/tools/javac/Diagnostics/6862608/T6862608a.java
...tools/test/tools/javac/Diagnostics/6862608/T6862608a.java
+1
-1
langtools/test/tools/javac/Diagnostics/6862608/T6862608b.java
...tools/test/tools/javac/Diagnostics/6862608/T6862608b.java
+1
-1
langtools/test/tools/javac/Diagnostics/7010608/Test.java
langtools/test/tools/javac/Diagnostics/7010608/Test.java
+2
-2
langtools/test/tools/javac/Diagnostics/8010387/T8010387.java
langtools/test/tools/javac/Diagnostics/8010387/T8010387.java
+1
-1
langtools/test/tools/javac/InterfaceMemberClassModifiers.java
...tools/test/tools/javac/InterfaceMemberClassModifiers.java
+1
-1
langtools/test/tools/javac/T5003235/T5003235a.java
langtools/test/tools/javac/T5003235/T5003235a.java
+1
-1
langtools/test/tools/javac/T5003235/T5003235b.java
langtools/test/tools/javac/T5003235/T5003235b.java
+1
-1
langtools/test/tools/javac/T6214885.java
langtools/test/tools/javac/T6214885.java
+2
-2
langtools/test/tools/javac/T8026963/TypeAnnotationsCrashWithErroneousTreeTest.java
...c/T8026963/TypeAnnotationsCrashWithErroneousTreeTest.java
+1
-1
langtools/test/tools/javac/annotations/neg/8022765/VerifyErroneousAnnotationsAttributed.java
...ons/neg/8022765/VerifyErroneousAnnotationsAttributed.java
+1
-1
langtools/test/tools/javac/annotations/typeAnnotations/newlocations/AfterMethodTypeParams.java
...s/typeAnnotations/newlocations/AfterMethodTypeParams.java
+1
-1
langtools/test/tools/javac/api/6731573/T6731573.java
langtools/test/tools/javac/api/6731573/T6731573.java
+2
-2
langtools/test/tools/javac/api/taskListeners/EventsBalancedTest.java
...est/tools/javac/api/taskListeners/EventsBalancedTest.java
+4
-4
langtools/test/tools/javac/completionDeps/DepsAndAnno.java
langtools/test/tools/javac/completionDeps/DepsAndAnno.java
+1
-1
langtools/test/tools/javac/completionDeps/DepsAndDocLint.java
...tools/test/tools/javac/completionDeps/DepsAndDocLint.java
+1
-1
langtools/test/tools/javac/diags/CheckResourceKeys.java
langtools/test/tools/javac/diags/CheckResourceKeys.java
+2
-2
langtools/test/tools/javac/diags/examples/ApplicableMethodFound.java
...est/tools/javac/diags/examples/ApplicableMethodFound.java
+1
-1
langtools/test/tools/javac/diags/examples/ApplicableMethodFound1.java
...st/tools/javac/diags/examples/ApplicableMethodFound1.java
+1
-1
langtools/test/tools/javac/diags/examples/DeferredMethodInst.java
...s/test/tools/javac/diags/examples/DeferredMethodInst.java
+1
-1
langtools/test/tools/javac/diags/examples/LambdaStat.java
langtools/test/tools/javac/diags/examples/LambdaStat.java
+1
-1
langtools/test/tools/javac/diags/examples/MrefStat.java
langtools/test/tools/javac/diags/examples/MrefStat.java
+1
-1
langtools/test/tools/javac/diags/examples/MrefStat1.java
langtools/test/tools/javac/diags/examples/MrefStat1.java
+1
-1
langtools/test/tools/javac/diags/examples/NotApplicableMethodFound.java
.../tools/javac/diags/examples/NotApplicableMethodFound.java
+1
-1
langtools/test/tools/javac/diags/examples/PartialInstSig.java
...tools/test/tools/javac/diags/examples/PartialInstSig.java
+1
-1
langtools/test/tools/javac/diags/examples/VerboseResolveMulti.java
.../test/tools/javac/diags/examples/VerboseResolveMulti.java
+1
-1
langtools/test/tools/javac/diags/examples/VerboseResolveMulti1.java
...test/tools/javac/diags/examples/VerboseResolveMulti1.java
+1
-1
langtools/test/tools/javac/diags/examples/WhereCaptured.java
langtools/test/tools/javac/diags/examples/WhereCaptured.java
+1
-1
langtools/test/tools/javac/diags/examples/WhereCaptured1.java
...tools/test/tools/javac/diags/examples/WhereCaptured1.java
+1
-1
langtools/test/tools/javac/diags/examples/WhereFreshTvar.java
...tools/test/tools/javac/diags/examples/WhereFreshTvar.java
+1
-1
langtools/test/tools/javac/diags/examples/WhereIntersection.java
...ls/test/tools/javac/diags/examples/WhereIntersection.java
+1
-1
langtools/test/tools/javac/diags/examples/WhereIntersection2.java
...s/test/tools/javac/diags/examples/WhereIntersection2.java
+1
-1
langtools/test/tools/javac/diags/examples/WhereTypeVar.java
langtools/test/tools/javac/diags/examples/WhereTypeVar.java
+1
-1
langtools/test/tools/javac/diags/examples/WhereTypeVar2.java
langtools/test/tools/javac/diags/examples/WhereTypeVar2.java
+1
-1
langtools/test/tools/javac/failover/CheckAttributedTree.java
langtools/test/tools/javac/failover/CheckAttributedTree.java
+1
-1
langtools/test/tools/javac/failover/FailOver01.java
langtools/test/tools/javac/failover/FailOver01.java
+1
-1
langtools/test/tools/javac/failover/FailOver02.java
langtools/test/tools/javac/failover/FailOver02.java
+1
-1
langtools/test/tools/javac/failover/FailOver03.java
langtools/test/tools/javac/failover/FailOver03.java
+1
-1
langtools/test/tools/javac/failover/FailOver04.java
langtools/test/tools/javac/failover/FailOver04.java
+1
-1
langtools/test/tools/javac/failover/FailOver05.java
langtools/test/tools/javac/failover/FailOver05.java
+1
-1
langtools/test/tools/javac/failover/FailOver06.java
langtools/test/tools/javac/failover/FailOver06.java
+1
-1
langtools/test/tools/javac/failover/FailOver07.java
langtools/test/tools/javac/failover/FailOver07.java
+1
-1
langtools/test/tools/javac/failover/FailOver08.java
langtools/test/tools/javac/failover/FailOver08.java
+1
-1
langtools/test/tools/javac/failover/FailOver09.java
langtools/test/tools/javac/failover/FailOver09.java
+1
-1
langtools/test/tools/javac/failover/FailOver10.java
langtools/test/tools/javac/failover/FailOver10.java
+1
-1
langtools/test/tools/javac/failover/FailOver11.java
langtools/test/tools/javac/failover/FailOver11.java
+1
-1
langtools/test/tools/javac/failover/FailOver12.java
langtools/test/tools/javac/failover/FailOver12.java
+1
-1
langtools/test/tools/javac/failover/FailOver13.java
langtools/test/tools/javac/failover/FailOver13.java
+1
-1
langtools/test/tools/javac/failover/FailOver14.java
langtools/test/tools/javac/failover/FailOver14.java
+1
-1
langtools/test/tools/javac/failover/FailOver15.java
langtools/test/tools/javac/failover/FailOver15.java
+1
-1
langtools/test/tools/javac/generics/inference/8158355/T8158355.java
...test/tools/javac/generics/inference/8158355/T8158355.java
+1
-1
langtools/test/tools/javac/lambda/MostSpecific09.java
langtools/test/tools/javac/lambda/MostSpecific09.java
+1
-1
langtools/test/tools/javac/lambda/MostSpecific09.out
langtools/test/tools/javac/lambda/MostSpecific09.out
+2
-2
langtools/test/tools/javac/lambda/TestLambdaToMethodStats.java
...ools/test/tools/javac/lambda/TestLambdaToMethodStats.java
+1
-1
langtools/test/tools/javac/lambda/XDdumpLambdaToMethodStats.java
...ls/test/tools/javac/lambda/XDdumpLambdaToMethodStats.java
+1
-1
langtools/test/tools/javac/lambda/bridge/TestMetafactoryBridges.java
...est/tools/javac/lambda/bridge/TestMetafactoryBridges.java
+1
-1
langtools/test/tools/javac/lambda/mostSpecific/StructuralMostSpecificTest.java
...javac/lambda/mostSpecific/StructuralMostSpecificTest.java
+1
-1
langtools/test/tools/javac/missingSuperRecovery/MissingSuperRecovery.java
...ools/javac/missingSuperRecovery/MissingSuperRecovery.java
+1
-1
langtools/test/tools/javac/modules/AddLimitMods.java
langtools/test/tools/javac/modules/AddLimitMods.java
+7
-7
langtools/test/tools/javac/policy/test3/Test.java
langtools/test/tools/javac/policy/test3/Test.java
+2
-2
langtools/test/tools/javac/positions/TreeEndPosTest.java
langtools/test/tools/javac/positions/TreeEndPosTest.java
+1
-1
langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess2.java
...t/tools/javac/protectedAccess/ProtectedMemberAccess2.java
+1
-1
langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess3.java
...t/tools/javac/protectedAccess/ProtectedMemberAccess3.java
+1
-1
langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess4.java
...t/tools/javac/protectedAccess/ProtectedMemberAccess4.java
+1
-1
langtools/test/tools/javac/resolve/ResolveHarness.java
langtools/test/tools/javac/resolve/ResolveHarness.java
+2
-2
langtools/test/tools/javac/unicode/UnicodeNewline.java
langtools/test/tools/javac/unicode/UnicodeNewline.java
+1
-1
langtools/test/tools/sjavac/JavacOptionPrep.java
langtools/test/tools/sjavac/JavacOptionPrep.java
+1
-1
未找到文件。
langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java
浏览文件 @
89ddb230
...
...
@@ -426,8 +426,8 @@ public class JavaCompiler {
verboseCompilePolicy
=
options
.
isSet
(
"verboseCompilePolicy"
);
if
(
options
.
isSet
(
"shouldstop.at"
)
&&
CompileState
.
valueOf
(
options
.
get
(
"shouldstop.at"
))
==
CompileState
.
ATTR
)
if
(
options
.
isSet
(
"should
-
stop.at"
)
&&
CompileState
.
valueOf
(
options
.
get
(
"should
-
stop.at"
))
==
CompileState
.
ATTR
)
compilePolicy
=
CompilePolicy
.
ATTR_ONLY
;
else
compilePolicy
=
CompilePolicy
.
decode
(
options
.
get
(
"compilePolicy"
));
...
...
@@ -440,14 +440,14 @@ public class JavaCompiler {
:
null
;
shouldStopPolicyIfError
=
options
.
isSet
(
"shouldstop.at"
)
// backwards compatible
?
CompileState
.
valueOf
(
options
.
get
(
"shouldstop.at"
))
:
options
.
isSet
(
"shouldstop.ifError"
)
?
CompileState
.
valueOf
(
options
.
get
(
"shouldstop.ifError"
))
options
.
isSet
(
"should
-
stop.at"
)
// backwards compatible
?
CompileState
.
valueOf
(
options
.
get
(
"should
-
stop.at"
))
:
options
.
isSet
(
"should
-
stop.ifError"
)
?
CompileState
.
valueOf
(
options
.
get
(
"should
-
stop.ifError"
))
:
CompileState
.
INIT
;
shouldStopPolicyIfNoError
=
options
.
isSet
(
"shouldstop.ifNoError"
)
?
CompileState
.
valueOf
(
options
.
get
(
"shouldstop.ifNoError"
))
options
.
isSet
(
"should
-
stop.ifNoError"
)
?
CompileState
.
valueOf
(
options
.
get
(
"should
-
stop.ifNoError"
))
:
CompileState
.
GENERATE
;
if
(
options
.
isUnset
(
"diags.legacy"
))
...
...
langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Option.java
浏览文件 @
89ddb230
...
...
@@ -509,33 +509,21 @@ public enum Option {
XDIAGS
(
"-Xdiags:"
,
"opt.diags"
,
EXTENDED
,
BASIC
,
ONEOF
,
"compact"
,
"verbose"
),
XDEBUG
(
"-X
debug:"
,
null
,
HIDDEN
,
BASIC
)
{
DEBUG
(
"--
debug:"
,
null
,
HIDDEN
,
BASIC
)
{
@Override
public
boolean
process
(
OptionHelper
helper
,
String
option
)
{
String
p
=
option
.
substring
(
option
.
indexOf
(
':'
)
+
1
).
trim
();
String
[]
subOptions
=
p
.
split
(
";"
);
for
(
String
subOption
:
subOptions
)
{
subOption
=
"debug."
+
subOption
.
trim
();
XD
.
process
(
helper
,
subOption
,
subOption
);
}
return
false
;
return
HiddenGroup
.
DEBUG
.
process
(
helper
,
option
);
}
},
XSHOULDSTOP
(
"-Xshould
stop:"
,
null
,
HIDDEN
,
BASIC
)
{
SHOULDSTOP
(
"--should-
stop:"
,
null
,
HIDDEN
,
BASIC
)
{
@Override
public
boolean
process
(
OptionHelper
helper
,
String
option
)
{
String
p
=
option
.
substring
(
option
.
indexOf
(
':'
)
+
1
).
trim
();
String
[]
subOptions
=
p
.
split
(
";"
);
for
(
String
subOption
:
subOptions
)
{
subOption
=
"shouldstop."
+
subOption
.
trim
();
XD
.
process
(
helper
,
subOption
,
subOption
);
}
return
false
;
return
HiddenGroup
.
SHOULDSTOP
.
process
(
helper
,
option
);
}
},
DIAGS
(
"-diags:"
,
null
,
HIDDEN
,
BASIC
)
{
DIAGS
(
"-
-
diags:"
,
null
,
HIDDEN
,
BASIC
)
{
@Override
public
boolean
process
(
OptionHelper
helper
,
String
option
)
{
return
HiddenGroup
.
DIAGS
.
process
(
helper
,
option
);
...
...
@@ -754,7 +742,12 @@ public enum Option {
}
enum
HiddenGroup
{
DIAGS
(
"diags"
);
DIAGS
(
"diags"
),
DEBUG
(
"debug"
),
SHOULDSTOP
(
"should-stop"
);
static
final
Set
<
String
>
skipSet
=
new
java
.
util
.
HashSet
<>(
Arrays
.
asList
(
"--diags:"
,
"--debug:"
,
"--should-stop:"
));
final
String
text
;
...
...
@@ -771,6 +764,10 @@ public enum Option {
}
return
false
;
}
static
boolean
skip
(
String
name
)
{
return
skipSet
.
contains
(
name
);
}
}
/**
...
...
@@ -930,7 +927,7 @@ public enum Option {
}
private
boolean
matches
(
String
option
,
String
name
)
{
if
(
name
.
startsWith
(
"--"
))
{
if
(
name
.
startsWith
(
"--"
)
&&
!
HiddenGroup
.
skip
(
name
)
)
{
return
option
.
equals
(
name
)
||
hasArg
()
&&
option
.
startsWith
(
name
+
"="
);
}
...
...
langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/options/Options.java
浏览文件 @
89ddb230
...
...
@@ -313,7 +313,7 @@ public class Options {
}
// Enable dependency generation
args
.
add
(
"-
X
debug:completionDeps=source,class"
);
args
.
add
(
"-
-
debug:completionDeps=source,class"
);
// This can't be anything but 'none'. Enforced by sjavac main method.
args
.
add
(
"-implicit:"
+
implicitPolicy
);
...
...
langtools/src/jdk.jshell/share/classes/jdk/jshell/ReplParser.java
浏览文件 @
89ddb230
...
...
@@ -95,24 +95,6 @@ class ReplParser extends JavacParser {
mods
=
modifiersOpt
();
}
if
(
token
.
kind
==
PACKAGE
)
{
int
packagePos
=
token
.
pos
;
List
<
JCAnnotation
>
annotations
=
List
.
nil
();
seenPackage
=
true
;
if
(
mods
!=
null
)
{
checkNoMods
(
mods
.
flags
);
annotations
=
mods
.
annotations
;
mods
=
null
;
}
nextToken
();
JCExpression
pid
=
qualident
(
false
);
accept
(
SEMI
);
JCPackageDecl
pd
=
F
.
at
(
packagePos
).
PackageDecl
(
annotations
,
pid
);
attach
(
pd
,
firstToken
.
comment
(
CommentStyle
.
JAVADOC
));
storeEnd
(
pd
,
token
.
pos
);
defs
.
append
(
pd
);
}
boolean
firstTypeDecl
=
true
;
while
(
token
.
kind
!=
EOF
)
{
if
(
token
.
pos
>
0
&&
token
.
pos
<=
endPosTable
.
errorEndPos
)
{
...
...
langtools/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java
浏览文件 @
89ddb230
...
...
@@ -838,8 +838,31 @@ class SourceCodeAnalysisImpl extends SourceCodeAnalysis {
}
private
Stream
<
Element
>
localElements
(
Scope
scope
)
{
@SuppressWarnings
(
"unchecked"
)
Stream
<
Element
>
elements
=
Util
.
stream
((
Iterable
<
Element
>)
scope
.
getLocalElements
());
//workaround for: JDK-8024687
Iterable
<
Element
>
elementsIt
=
()
->
new
Iterator
<
Element
>()
{
Iterator
<?
extends
Element
>
it
=
scope
.
getLocalElements
().
iterator
();
@Override
public
boolean
hasNext
()
{
while
(
true
)
{
try
{
return
it
.
hasNext
();
}
catch
(
CompletionFailure
cf
)
{
//ignore...
}
}
}
@Override
public
Element
next
()
{
while
(
true
)
{
try
{
return
it
.
next
();
}
catch
(
CompletionFailure
cf
)
{
//ignore...
}
}
}
};
Stream
<
Element
>
elements
=
Util
.
stream
(
elementsIt
);
if
(
scope
.
getEnclosingScope
()
!=
null
&&
scope
.
getEnclosingClass
()
!=
scope
.
getEnclosingScope
().
getEnclosingClass
())
{
...
...
langtools/src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java
浏览文件 @
89ddb230
...
...
@@ -222,7 +222,7 @@ class TaskFactory {
this
(
wraps
.
stream
(),
new
WrapSourceHandler
(),
Util
.
join
(
new
String
[]
{
"-
Xshould
stop:at=FLOW"
,
"-Xlint:unchecked"
,
"-
-should-
stop:at=FLOW"
,
"-Xlint:unchecked"
,
"-proc:none"
},
extraArgs
));
}
...
...
langtools/test/jdk/jshell/CompletionSuggestionTest.java
浏览文件 @
89ddb230
...
...
@@ -23,7 +23,7 @@
/*
* @test
* @bug 8141092 8153761
* @bug 81
31025 81
41092 8153761
* @summary Test Completion
* @modules jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.main
...
...
@@ -610,4 +610,26 @@ public class CompletionSuggestionTest extends KullaTesting {
keepParameterNames
.
setAccessible
(
true
);
keepParameterNames
.
set
(
getAnalysis
(),
new
String
[
0
]);
}
public
void
testBrokenClassFile2
()
throws
IOException
{
Path
broken
=
outDir
.
resolve
(
"broken"
);
compiler
.
compile
(
broken
,
"package p;\n"
+
"public class BrokenA {\n"
+
"}"
,
"package p.q;\n"
+
"public class BrokenB {\n"
+
"}"
,
"package p;\n"
+
"public class BrokenC {\n"
+
"}"
);
Path
cp
=
compiler
.
getPath
(
broken
);
Path
target
=
cp
.
resolve
(
"p"
).
resolve
(
"BrokenB.class"
);
Files
.
deleteIfExists
(
target
);
Files
.
move
(
cp
.
resolve
(
"p"
).
resolve
(
"q"
).
resolve
(
"BrokenB.class"
),
target
);
addToClasspath
(
cp
);
assertEval
(
"import p.*;"
);
assertCompletion
(
"Broke|"
,
"BrokenA"
,
"BrokenC"
);
}
}
langtools/test/jdk/jshell/RejectedFailedTest.java
浏览文件 @
89ddb230
...
...
@@ -22,7 +22,7 @@
*/
/*
* @test
* @test
8080352
* @summary Tests for hard errors, like syntax errors
* @build KullaTesting
* @run testng RejectedFailedTest
...
...
@@ -81,6 +81,7 @@ public class RejectedFailedTest extends KullaTesting {
" a b c"
,
")"
,
"class interface A"
,
"package foo;"
};
checkByKind
(
inputsErroneous
,
Kind
.
ERRONEOUS
);
}
...
...
langtools/test/tools/javac/ClassFileModifiers/ClassModifiers.java
浏览文件 @
89ddb230
...
...
@@ -28,7 +28,7 @@
* file are correct, including those within InnerClasses attributes.
* @author John Rose (jrose). Entered as a regression test by Bill Maddox (maddox).
*
* @compile/ref=ClassModifiers.out
-X
debug:dumpmodifiers=ci ClassModifiers.java
* @compile/ref=ClassModifiers.out
--
debug:dumpmodifiers=ci ClassModifiers.java
*
*/
...
...
langtools/test/tools/javac/ClassFileModifiers/MemberModifiers.java
浏览文件 @
89ddb230
...
...
@@ -26,7 +26,7 @@
* @bug 4249112 4785453
* @summary Verify that implicit member modifiers are set correctly.
*
* @compile/ref=MemberModifiers.out -
X
debug:dumpmodifiers=cfm MemberModifiers.java
* @compile/ref=MemberModifiers.out -
-
debug:dumpmodifiers=cfm MemberModifiers.java
*/
// Currently, we check only that members of final classes are not final.
...
...
langtools/test/tools/javac/Diagnostics/6722234/T6722234a.java
浏览文件 @
89ddb230
...
...
@@ -3,8 +3,8 @@
* @bug 6722234
* @summary javac diagnostics need better integration with the type-system
* @author mcimadamore
* @compile/fail/ref=T6722234a_1.out -XDrawDiagnostics -diags:formatterOptions=disambiguateTvars T6722234a.java
* @compile/fail/ref=T6722234a_2.out -XDrawDiagnostics -diags:formatterOptions=disambiguateTvars,where T6722234a.java
* @compile/fail/ref=T6722234a_1.out -XDrawDiagnostics -
-
diags:formatterOptions=disambiguateTvars T6722234a.java
* @compile/fail/ref=T6722234a_2.out -XDrawDiagnostics -
-
diags:formatterOptions=disambiguateTvars,where T6722234a.java
*/
class
T6722234a
<
T
extends
String
>
{
...
...
langtools/test/tools/javac/Diagnostics/6722234/T6722234b.java
浏览文件 @
89ddb230
...
...
@@ -3,8 +3,8 @@
* @bug 6722234 8078024
* @summary javac diagnostics need better integration with the type-system
* @author mcimadamore
* @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics -diags:formatterOptions=simpleNames T6722234b.java
* @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics -diags:formatterOptions=simpleNames,where T6722234b.java
* @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics -
-
diags:formatterOptions=simpleNames T6722234b.java
* @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics -
-
diags:formatterOptions=simpleNames,where T6722234b.java
*/
import
java.util.*
;
...
...
langtools/test/tools/javac/Diagnostics/6722234/T6722234c.java
浏览文件 @
89ddb230
...
...
@@ -3,7 +3,7 @@
* @bug 6722234
* @summary javac diagnostics need better integration with the type-system
* @author mcimadamore
* @compile/fail/ref=T6722234c.out -XDrawDiagnostics -diags:formatterOptions=simpleNames T6722234c.java
* @compile/fail/ref=T6722234c.out -XDrawDiagnostics -
-
diags:formatterOptions=simpleNames T6722234c.java
*/
class
T6722234c
{
...
...
langtools/test/tools/javac/Diagnostics/6722234/T6722234d.java
浏览文件 @
89ddb230
...
...
@@ -3,8 +3,8 @@
* @bug 6722234 8078024
* @summary javac diagnostics need better integration with the type-system
* @author mcimadamore
* @compile/fail/ref=T6722234d_1.out -XDrawDiagnostics -diags:formatterOptions=where T6722234d.java
* @compile/fail/ref=T6722234d_2.out -XDrawDiagnostics -diags:formatterOptions=where,simpleNames T6722234d.java
* @compile/fail/ref=T6722234d_1.out -XDrawDiagnostics -
-
diags:formatterOptions=where T6722234d.java
* @compile/fail/ref=T6722234d_2.out -XDrawDiagnostics -
-
diags:formatterOptions=where,simpleNames T6722234d.java
*/
class
T6722234d
{
...
...
langtools/test/tools/javac/Diagnostics/6862608/T6862608a.java
浏览文件 @
89ddb230
...
...
@@ -3,7 +3,7 @@
* @bug 6862608
* @summary rich diagnostic sometimes contain wrong type variable numbering
* @author mcimadamore
* @compile/fail/ref=T6862608a.out -XDrawDiagnostics -diags:formatterOptions=disambiguateTvars,where T6862608a.java
* @compile/fail/ref=T6862608a.out -XDrawDiagnostics -
-
diags:formatterOptions=disambiguateTvars,where T6862608a.java
*/
...
...
langtools/test/tools/javac/Diagnostics/6862608/T6862608b.java
浏览文件 @
89ddb230
...
...
@@ -3,7 +3,7 @@
* @bug 6862608
* @summary rich diagnostic sometimes contain wrong type variable numbering
* @author mcimadamore
* @compile/fail/ref=T6862608b.out -XDrawDiagnostics -diags:formatterOptions=disambiguateTvars,where T6862608b.java
* @compile/fail/ref=T6862608b.out -XDrawDiagnostics -
-
diags:formatterOptions=disambiguateTvars,where T6862608b.java
*/
class
T66862608b
<
T
extends
String
,
S
>
{
...
...
langtools/test/tools/javac/Diagnostics/7010608/Test.java
浏览文件 @
89ddb230
...
...
@@ -46,9 +46,9 @@ public class Test {
try
{
test
(
Arrays
.<
String
>
asList
(),
"myfo://test:1: error: cannot find symbol"
);
test
(
Arrays
.
asList
(
"-diags:layout=OLD"
),
test
(
Arrays
.
asList
(
"-
-
diags:layout=OLD"
),
"myfo://test:1: cannot find symbol"
);
test
(
Arrays
.
asList
(
"-diags:legacy"
),
test
(
Arrays
.
asList
(
"-
-
diags:legacy"
),
"myfo://test:1: cannot find symbol"
);
}
finally
{
Locale
.
setDefault
(
prev
);
...
...
langtools/test/tools/javac/Diagnostics/8010387/T8010387.java
浏览文件 @
89ddb230
...
...
@@ -2,7 +2,7 @@
* @test /nodynamiccopyright/
* @bug 8010387
* @summary rich diagnostic sometimes contain wrong type variable numbering
* @compile/fail/ref=T8010387.out -XDrawDiagnostics -diags:formatterOptions=disambiguateTvars,where T8010387.java
* @compile/fail/ref=T8010387.out -XDrawDiagnostics -
-
diags:formatterOptions=disambiguateTvars,where T8010387.java
*/
abstract
class
T8010387
<
X
>
{
...
...
langtools/test/tools/javac/InterfaceMemberClassModifiers.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Verify that invalid access modifiers on interface members don't cause crash.
* @author maddox
*
* @compile/fail/ref=InterfaceMemberClassModifiers.out -diags:layout=%b:%l:%_%m InterfaceMemberClassModifiers.java
* @compile/fail/ref=InterfaceMemberClassModifiers.out -
-
diags:layout=%b:%l:%_%m InterfaceMemberClassModifiers.java
*/
public
interface
InterfaceMemberClassModifiers
{
...
...
langtools/test/tools/javac/T5003235/T5003235a.java
浏览文件 @
89ddb230
...
...
@@ -3,7 +3,7 @@
* @bug 5003235
* @summary Private inner class accessible from subclasses
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T5003235a.out -diags:layout=%b:%l:%_%m T5003235a.java
* @compile/fail/ref=T5003235a.out -
-
diags:layout=%b:%l:%_%m T5003235a.java
*/
class
Super
{
...
...
langtools/test/tools/javac/T5003235/T5003235b.java
浏览文件 @
89ddb230
...
...
@@ -3,7 +3,7 @@
* @bug 5003235
* @summary Accessibility of private inner class
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T5003235b.out -diags:layout=%b:%l:%_%m T5003235b.java
* @compile/fail/ref=T5003235b.out -
-
diags:layout=%b:%l:%_%m T5003235b.java
*/
class
Outer
{
...
...
langtools/test/tools/javac/T6214885.java
浏览文件 @
89ddb230
...
...
@@ -2,8 +2,8 @@
* @test /nodynamiccopyright/
* @bug 6214885
* @summary This test exercises features provided by the new internal Diagnostics API
* @compile/fail/ref=T6214885a.out -diags:layout=%b:%l%_%t%m|%p%m T6214885.java
* @compile/fail/ref=T6214885b.out -diags:layout=%b:%l:%c%_%t%m|%p%m T6214885.java
* @compile/fail/ref=T6214885a.out -
-
diags:layout=%b:%l%_%t%m|%p%m T6214885.java
* @compile/fail/ref=T6214885b.out -
-
diags:layout=%b:%l:%c%_%t%m|%p%m T6214885.java
*/
class
T6214885
{
...
...
langtools/test/tools/javac/T8026963/TypeAnnotationsCrashWithErroneousTreeTest.java
浏览文件 @
89ddb230
...
...
@@ -2,7 +2,7 @@
* @test /nodynamiccopyright/
* @bug 8026963
* @summary type annotations code crashes for lambdas with void argument
* @compile/fail/ref=TypeAnnotationsCrashWithErroneousTreeTest.out -XDrawDiagnostics -
Xshould
stop:at=FLOW TypeAnnotationsCrashWithErroneousTreeTest.java
* @compile/fail/ref=TypeAnnotationsCrashWithErroneousTreeTest.out -XDrawDiagnostics -
-should-
stop:at=FLOW TypeAnnotationsCrashWithErroneousTreeTest.java
*/
public
class
TypeAnnotationsCrashWithErroneousTreeTest
{
...
...
langtools/test/tools/javac/annotations/neg/8022765/VerifyErroneousAnnotationsAttributed.java
浏览文件 @
89ddb230
...
...
@@ -237,7 +237,7 @@ public class VerifyErroneousAnnotationsAttributed {
JavacTask
task
=
tool
.
getTask
(
null
,
fm
,
devNull
,
Arrays
.
asList
(
"-
Xshould
stop:at=FLOW"
),
Arrays
.
asList
(
"-
-should-
stop:at=FLOW"
),
null
,
Arrays
.
asList
(
new
MyFileObject
(
code
)));
...
...
langtools/test/tools/javac/annotations/typeAnnotations/newlocations/AfterMethodTypeParams.java
浏览文件 @
89ddb230
...
...
@@ -54,7 +54,7 @@ public class AfterMethodTypeParams {
String
test
=
TEMPLATE
.
replace
(
"CONTENT"
,
tc
.
snippet
);
List
<
JavaFileObject
>
files
=
Arrays
.
asList
(
new
MyFileObject
(
test
));
StringWriter
out
=
new
StringWriter
();
List
<
String
>
options
=
Arrays
.
asList
(
"-XDrawDiagnostics"
,
"-
Xshould
stop:at=FLOW"
);
List
<
String
>
options
=
Arrays
.
asList
(
"-XDrawDiagnostics"
,
"-
-should-
stop:at=FLOW"
);
JavacTask
task
=
(
JavacTask
)
compiler
.
getTask
(
out
,
null
,
null
,
options
,
null
,
files
);
new
TreePathScanner
<
Void
,
Void
>()
{
...
...
langtools/test/tools/javac/api/6731573/T6731573.java
浏览文件 @
89ddb230
...
...
@@ -62,8 +62,8 @@ public class T6731573 extends ToolTester {
enum
SourceLine
{
STANDARD
(
null
),
ENABLED
(
"-diags:showSource=true"
),
DISABLED
(
"-diags:showSource=false"
);
ENABLED
(
"-
-
diags:showSource=true"
),
DISABLED
(
"-
-
diags:showSource=false"
);
String
optValue
;
...
...
langtools/test/tools/javac/api/taskListeners/EventsBalancedTest.java
浏览文件 @
89ddb230
...
...
@@ -63,11 +63,11 @@ public class EventsBalancedTest {
test
(
null
,
Arrays
.
asList
(
b
,
a
));
for
(
CompileState
stop
:
CompileState
.
values
())
{
test
(
Arrays
.
asList
(
"-
Xshould
stop:ifNoError="
+
stop
,
"-
Xshould
stop:ifError="
+
stop
),
test
(
Arrays
.
asList
(
"-
-should-
stop:ifNoError="
+
stop
,
"-
-should-
stop:ifError="
+
stop
),
Arrays
.
asList
(
a
,
b
));
test
(
Arrays
.
asList
(
"-
Xshould
stop:ifNoError="
+
stop
,
"-
Xshould
stop:ifError="
+
stop
),
test
(
Arrays
.
asList
(
"-
-should-
stop:ifNoError="
+
stop
,
"-
-should-
stop:ifError="
+
stop
),
Arrays
.
asList
(
b
,
a
));
}
}
...
...
langtools/test/tools/javac/completionDeps/DepsAndAnno.java
浏览文件 @
89ddb230
...
...
@@ -47,7 +47,7 @@ public class DepsAndAnno {
public
static
void
main
(
String
[]
args
)
{
ToolBox
toolBox
=
new
ToolBox
();
new
JavacTask
(
toolBox
,
Task
.
Mode
.
CMDLINE
)
.
options
(
"-
X
debug:completionDeps"
)
.
options
(
"-
-
debug:completionDeps"
)
.
outdir
(
"."
)
.
files
(
ToolBox
.
testSrc
+
"/DepsAndAnno.java"
)
.
run
();
...
...
langtools/test/tools/javac/completionDeps/DepsAndDocLint.java
浏览文件 @
89ddb230
...
...
@@ -25,7 +25,7 @@
* @test
* @bug 8078389
* @summary Make sure there is no interference between completionDeps and doclint
* @compile -
X
debug:completionDeps -Xdoclint DepsAndDocLint.java
* @compile -
-
debug:completionDeps -Xdoclint DepsAndDocLint.java
*/
public
class
DepsAndDocLint
{
...
...
langtools/test/tools/javac/diags/CheckResourceKeys.java
浏览文件 @
89ddb230
...
...
@@ -260,8 +260,8 @@ public class CheckResourceKeys {
// ignore debug flag names
if
(
cs
.
startsWith
(
"debug."
))
continue
;
// ignore shouldstop flag names
if
(
cs
.
startsWith
(
"shouldstop."
))
// ignore should
-
stop flag names
if
(
cs
.
startsWith
(
"should
-
stop."
))
continue
;
// ignore diagsformat flag names
if
(
cs
.
startsWith
(
"diags."
))
...
...
langtools/test/tools/javac/diags/examples/ApplicableMethodFound.java
浏览文件 @
89ddb230
...
...
@@ -23,7 +23,7 @@
// key: compiler.misc.applicable.method.found
// key: compiler.note.verbose.resolve.multi
// options: -
X
debug:verboseResolution=applicable,success
// options: -
-
debug:verboseResolution=applicable,success
class
ApplicableMethodFound
{
...
...
langtools/test/tools/javac/diags/examples/ApplicableMethodFound1.java
浏览文件 @
89ddb230
...
...
@@ -24,7 +24,7 @@
// key: compiler.misc.applicable.method.found.1
// key: compiler.note.verbose.resolve.multi
// key: compiler.misc.partial.inst.sig
// options: -
X
debug:verboseResolution=applicable,success
// options: -
-
debug:verboseResolution=applicable,success
class
ApplicableMethodFound1
{
...
...
langtools/test/tools/javac/diags/examples/DeferredMethodInst.java
浏览文件 @
89ddb230
...
...
@@ -25,7 +25,7 @@
// key: compiler.note.verbose.resolve.multi
// key: compiler.note.deferred.method.inst
// key: compiler.misc.partial.inst.sig
// options: -
X
debug:verboseResolution=applicable,success,deferred-inference
// options: -
-
debug:verboseResolution=applicable,success,deferred-inference
class
DeferredMethodInst
{
...
...
langtools/test/tools/javac/diags/examples/LambdaStat.java
浏览文件 @
89ddb230
...
...
@@ -22,7 +22,7 @@
*/
// key: compiler.note.lambda.stat
// options: -
X
debug:dumpLambdaToMethodStats
// options: -
-
debug:dumpLambdaToMethodStats
class
LambdaStat
{
Runnable
r
=
()->{};
...
...
langtools/test/tools/javac/diags/examples/MrefStat.java
浏览文件 @
89ddb230
...
...
@@ -22,7 +22,7 @@
*/
// key: compiler.note.mref.stat
// options: -
X
debug:dumpLambdaToMethodStats
// options: -
-
debug:dumpLambdaToMethodStats
class
MrefStat
{
Runnable
r
=
MrefStat:
:
m
;
...
...
langtools/test/tools/javac/diags/examples/MrefStat1.java
浏览文件 @
89ddb230
...
...
@@ -22,7 +22,7 @@
*/
// key: compiler.note.mref.stat.1
// options: -
X
debug:dumpLambdaToMethodStats
// options: -
-
debug:dumpLambdaToMethodStats
class
MrefStat1
{
...
...
langtools/test/tools/javac/diags/examples/NotApplicableMethodFound.java
浏览文件 @
89ddb230
...
...
@@ -26,7 +26,7 @@
// key: compiler.err.cant.apply.symbol
// key: compiler.misc.no.conforming.assignment.exists
// key: compiler.misc.inconvertible.types
// options: -
X
debug:verboseResolution=inapplicable,failure
// options: -
-
debug:verboseResolution=inapplicable,failure
class
NotApplicableMethodFound
{
...
...
langtools/test/tools/javac/diags/examples/PartialInstSig.java
浏览文件 @
89ddb230
...
...
@@ -24,7 +24,7 @@
// key: compiler.misc.applicable.method.found.1
// key: compiler.note.verbose.resolve.multi
// key: compiler.misc.partial.inst.sig
// options: -
X
debug:verboseResolution=applicable,success
// options: -
-
debug:verboseResolution=applicable,success
class
PartialInstSig
{
...
...
langtools/test/tools/javac/diags/examples/VerboseResolveMulti.java
浏览文件 @
89ddb230
...
...
@@ -23,7 +23,7 @@
// key: compiler.misc.applicable.method.found
// key: compiler.note.verbose.resolve.multi
// options: -
X
debug:verboseResolution=applicable,success
// options: -
-
debug:verboseResolution=applicable,success
class
VerboseResolveMulti
{
...
...
langtools/test/tools/javac/diags/examples/VerboseResolveMulti1.java
浏览文件 @
89ddb230
...
...
@@ -26,7 +26,7 @@
// key: compiler.err.cant.apply.symbol
// key: compiler.misc.no.conforming.assignment.exists
// key: compiler.misc.inconvertible.types
// options: -
X
debug:verboseResolution=inapplicable,failure
// options: -
-
debug:verboseResolution=inapplicable,failure
class
VerboseResolveMulti1
{
...
...
langtools/test/tools/javac/diags/examples/WhereCaptured.java
浏览文件 @
89ddb230
...
...
@@ -28,7 +28,7 @@
// key: compiler.err.cant.apply.symbol
// key: compiler.misc.incompatible.eq.bounds
// key: compiler.misc.captured.type
// options: -diags:formatterOptions=where,simpleNames
// options: -
-
diags:formatterOptions=where,simpleNames
// run: simple
import
java.util.*
;
...
...
langtools/test/tools/javac/diags/examples/WhereCaptured1.java
浏览文件 @
89ddb230
...
...
@@ -29,7 +29,7 @@
// key: compiler.misc.incompatible.eq.bounds
// key: compiler.misc.captured.type
// key: compiler.misc.type.null
// options: -diags:formatterOptions=where,simpleNames
// options: -
-
diags:formatterOptions=where,simpleNames
// run: simple
import
java.util.*
;
...
...
langtools/test/tools/javac/diags/examples/WhereFreshTvar.java
浏览文件 @
89ddb230
...
...
@@ -25,7 +25,7 @@
// key: compiler.misc.where.description.typevar
// key: compiler.err.prob.found.req
// key: compiler.misc.inconvertible.types
// options: -diags:formatterOptions=where,simpleNames
// options: -
-
diags:formatterOptions=where,simpleNames
// run: simple
import
java.util.*
;
...
...
langtools/test/tools/javac/diags/examples/WhereIntersection.java
浏览文件 @
89ddb230
...
...
@@ -26,7 +26,7 @@
// key: compiler.misc.where.description.intersection.1
// key: compiler.misc.where.intersection
// key: compiler.err.prob.found.req
// options: -diags:formatterOptions=where
// options: -
-
diags:formatterOptions=where
// run: simple
class
WhereIntersection
{
...
...
langtools/test/tools/javac/diags/examples/WhereIntersection2.java
浏览文件 @
89ddb230
...
...
@@ -29,7 +29,7 @@
// key: compiler.misc.where.description.intersection
// key: compiler.misc.where.intersection
// key: compiler.err.prob.found.req
// options: -diags:formatterOptions=where
// options: -
-
diags:formatterOptions=where
// run: simple
class
WhereIntersection2
{
...
...
langtools/test/tools/javac/diags/examples/WhereTypeVar.java
浏览文件 @
89ddb230
...
...
@@ -27,7 +27,7 @@
// key: compiler.err.cant.apply.symbol
// key: compiler.misc.no.conforming.assignment.exists
// key: compiler.misc.inconvertible.types
// options: -diags:formatterOptions=where,disambiguateTvars
// options: -
-
diags:formatterOptions=where,disambiguateTvars
// run: simple
class
WhereTypeVar
<
T
extends
String
>
{
...
...
langtools/test/tools/javac/diags/examples/WhereTypeVar2.java
浏览文件 @
89ddb230
...
...
@@ -25,7 +25,7 @@
// key: compiler.misc.where.description.typevar
// key: compiler.misc.where.typevar
// key: compiler.err.prob.found.req
// options: -diags:formatterOptions=where
// options: -
-
diags:formatterOptions=where
// run: simple
class
WhereTypeVar2
{
...
...
langtools/test/tools/javac/failover/CheckAttributedTree.java
浏览文件 @
89ddb230
...
...
@@ -311,7 +311,7 @@ public class CheckAttributedTree {
final
List
<
CompilationUnitTree
>
trees
=
new
ArrayList
<>();
Iterable
<?
extends
Element
>
elems
=
newCompilationTask
()
.
withWriter
(
pw
)
.
withOption
(
"-
Xshould
stop:at=ATTR"
)
.
withOption
(
"-
-should-
stop:at=ATTR"
)
.
withOption
(
"-XDverboseCompilePolicy"
)
.
withSource
(
files
.
iterator
().
next
())
.
withListener
(
new
TaskListener
()
{
...
...
langtools/test/tools/javac/failover/FailOver01.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver01.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver01.java
* @compile/fail/ref=FailOver01.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver01.java
*/
class
Test
{
{
x
=
""
}
}
langtools/test/tools/javac/failover/FailOver02.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver02.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver02.java
* @compile/fail/ref=FailOver02.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver02.java
*/
class
Test
implements
AutoCloseable
{
...
...
langtools/test/tools/javac/failover/FailOver03.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver03.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver03.java
* @compile/fail/ref=FailOver03.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver03.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver04.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver04.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver04.java
* @compile/fail/ref=FailOver04.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver04.java
*/
class
Test
{
...
...
langtools/test/tools/javac/failover/FailOver05.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver05.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver05.java
* @compile/fail/ref=FailOver05.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver05.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver06.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver06.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver06.java
* @compile/fail/ref=FailOver06.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver06.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver07.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver07.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver07.java
* @compile/fail/ref=FailOver07.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver07.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver08.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver08.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver08.java
* @compile/fail/ref=FailOver08.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver08.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver09.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver09.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver09.java
* @compile/fail/ref=FailOver09.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver09.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver10.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver10.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver10.java
* @compile/fail/ref=FailOver10.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver10.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver11.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver11.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver11.java
* @compile/fail/ref=FailOver11.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver11.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver12.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver12.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver12.java
* @compile/fail/ref=FailOver12.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver12.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver13.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver13.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver13.java
* @compile/fail/ref=FailOver13.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver13.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver14.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver14.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver14.java
* @compile/fail/ref=FailOver14.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver14.java
*/
class
Test
extends
Test
{
...
...
langtools/test/tools/javac/failover/FailOver15.java
浏览文件 @
89ddb230
...
...
@@ -3,7 +3,7 @@
* @bug 6970584 7060926
* @summary Attr.PostAttrAnalyzer misses a case
*
* @compile/fail/ref=FailOver15.out -XDrawDiagnostics -
Xshould
stop:at=FLOW -XDdev FailOver15.java
* @compile/fail/ref=FailOver15.out -XDrawDiagnostics -
-should-
stop:at=FLOW -XDdev FailOver15.java
*/
class
Test
{
...
...
langtools/test/tools/javac/generics/inference/8158355/T8158355.java
浏览文件 @
89ddb230
...
...
@@ -27,7 +27,7 @@
* @test
* @bug 8158355
* @summary Inference graph dot support broken
* @compile -
X
debug:dumpInferenceGraphsTo=. T8158355.java
* @compile -
-
debug:dumpInferenceGraphsTo=. T8158355.java
*/
import
java.util.List
;
...
...
langtools/test/tools/javac/lambda/MostSpecific09.java
浏览文件 @
89ddb230
...
...
@@ -2,7 +2,7 @@
* @test /nodynamiccopyright/
* @bug 8029718
* @summary Should always use lambda body structure to disambiguate overload resolution
* @compile/fail/ref=MostSpecific09.out -XDrawDiagnostics -
Xshouldstop:at=ATTR -X
debug:verboseResolution=applicable,success MostSpecific09.java
* @compile/fail/ref=MostSpecific09.out -XDrawDiagnostics -
-should-stop:at=ATTR --
debug:verboseResolution=applicable,success MostSpecific09.java
*/
class
MostSpecific09
{
...
...
langtools/test/tools/javac/lambda/MostSpecific09.out
浏览文件 @
89ddb230
...
...
@@ -3,7 +3,7 @@ MostSpecific09.java:26:9: compiler.note.verbose.resolve.multi: foo, MostSpecific
MostSpecific09.java:27:9: compiler.note.verbose.resolve.multi: foo, MostSpecific09, 0, BASIC, compiler.misc.type.none, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, foo(MostSpecific09.J), null)}
MostSpecific09.java:27:32: compiler.note.verbose.resolve.multi: println, java.io.PrintStream, 1, BASIC, java.lang.String, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, println(java.lang.Object), null),(compiler.misc.applicable.method.found: 1, println(java.lang.String), null)}
MostSpecific09.java:28:13: compiler.err.lambda.body.neither.value.nor.void.compatible
MostSpecific09.java:28:9: compiler.err.cant.apply.symbols: kindname.method, foo, @68
1
,{(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.I), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.incompatible.ret.type.in.lambda: (compiler.misc.missing.ret.val: java.lang.String)))),(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.J), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.unexpected.ret.val)))}
MostSpecific09.java:28:9: compiler.err.cant.apply.symbols: kindname.method, foo, @68
2
,{(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.I), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.incompatible.ret.type.in.lambda: (compiler.misc.missing.ret.val: java.lang.String)))),(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.J), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.unexpected.ret.val)))}
MostSpecific09.java:28:43: compiler.note.verbose.resolve.multi: println, java.io.PrintStream, 1, BASIC, java.lang.String, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, println(java.lang.Object), null),(compiler.misc.applicable.method.found: 1, println(java.lang.String), null)}
MostSpecific09.java:29:9: compiler.err.ref.ambiguous: foo, kindname.method, foo(MostSpecific09.I), MostSpecific09, kindname.method, foo(MostSpecific09.J), MostSpecific09
MostSpecific09.java:29:28: compiler.note.verbose.resolve.multi: <init>, java.lang.RuntimeException, 0, BASIC, compiler.misc.no.args, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, java.lang.RuntimeException(), null)}
...
...
@@ -11,7 +11,7 @@ MostSpecific09.java:30:9: compiler.err.ref.ambiguous: foo, kindname.method, foo(
MostSpecific09.java:32:9: compiler.err.ref.ambiguous: foo, kindname.method, foo(MostSpecific09.I), MostSpecific09, kindname.method, foo(MostSpecific09.J), MostSpecific09
MostSpecific09.java:33:9: compiler.note.verbose.resolve.multi: foo, MostSpecific09, 0, BASIC, compiler.misc.type.none, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, foo(MostSpecific09.I), null)}
MostSpecific09.java:42:13: compiler.err.lambda.body.neither.value.nor.void.compatible
MostSpecific09.java:42:9: compiler.err.cant.apply.symbols: kindname.method, foo, @113
0
,{(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.I), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.incompatible.ret.type.in.lambda: (compiler.misc.missing.ret.val: java.lang.String)))),(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.J), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.unexpected.ret.val)))}
MostSpecific09.java:42:9: compiler.err.cant.apply.symbols: kindname.method, foo, @113
1
,{(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.I), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.incompatible.ret.type.in.lambda: (compiler.misc.missing.ret.val: java.lang.String)))),(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.J), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.unexpected.ret.val)))}
MostSpecific09.java:46:23: compiler.note.verbose.resolve.multi: println, java.io.PrintStream, 1, BASIC, java.lang.String, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, println(java.lang.Object), null),(compiler.misc.applicable.method.found: 1, println(java.lang.String), null)}
MostSpecific09.java:49:9: compiler.note.verbose.resolve.multi: foo, MostSpecific09, 0, BASIC, compiler.misc.type.none, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, foo(MostSpecific09.J), null)}
MostSpecific09.java:56:25: compiler.note.verbose.resolve.multi: <init>, Bar, 0, BASIC, compiler.misc.no.args, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, Bar(), null)}
...
...
langtools/test/tools/javac/lambda/TestLambdaToMethodStats.java
浏览文件 @
89ddb230
...
...
@@ -122,7 +122,7 @@ public class TestLambdaToMethodStats extends ComboInstance<TestLambdaToMethodSta
@Override
public
void
doWork
()
throws
IOException
{
check
(
newCompilationTask
()
.
withOption
(
"-
X
debug:dumpLambdaToMethodStats"
)
.
withOption
(
"-
-
debug:dumpLambdaToMethodStats"
)
.
withSourceFromTemplate
(
template
)
.
generate
());
}
...
...
langtools/test/tools/javac/lambda/XDdumpLambdaToMethodStats.java
浏览文件 @
89ddb230
...
...
@@ -25,7 +25,7 @@
* @test
* @bug 8143217
* @summary javac throws NPE when printing diagnostics for Lambda expressions
* @compile XDdumpLambdaToMethodStats.java -
X
debug:dumpLambdaToMethodStats
* @compile XDdumpLambdaToMethodStats.java -
-
debug:dumpLambdaToMethodStats
*
*/
...
...
langtools/test/tools/javac/lambda/bridge/TestMetafactoryBridges.java
浏览文件 @
89ddb230
...
...
@@ -274,7 +274,7 @@ public class TestMetafactoryBridges {
sourcefiles
.
add
(
new
JavaSource
(
ck
));
}
JavacTask
ct
=
(
JavacTask
)
tool
.
getTask
(
debugWriter
,
null
,
diagChecker
,
Arrays
.
asList
(
"-
X
debug:dumpLambdaToMethodStats"
,
"-d"
,
outDir
.
getAbsolutePath
(),
Arrays
.
asList
(
"-
-
debug:dumpLambdaToMethodStats"
,
"-d"
,
outDir
.
getAbsolutePath
(),
"-sourcepath"
,
srcDir
.
getAbsolutePath
(),
"-classpath"
,
classesDir
.
getAbsolutePath
(),
pp
.
preferOpt
),
null
,
sourcefiles
);
...
...
langtools/test/tools/javac/lambda/mostSpecific/StructuralMostSpecificTest.java
浏览文件 @
89ddb230
...
...
@@ -210,7 +210,7 @@ public class StructuralMostSpecificTest extends ComboInstance<StructuralMostSpec
public
void
doWork
()
throws
Throwable
{
check
(
newCompilationTask
()
.
withSourceFromTemplate
(
sourceTemplate
)
.
withOption
(
"-
X
debug:verboseResolution=all,-predef,-internal,-object-init"
)
.
withOption
(
"-
-
debug:verboseResolution=all,-predef,-internal,-object-init"
)
.
analyze
());
}
...
...
langtools/test/tools/javac/missingSuperRecovery/MissingSuperRecovery.java
浏览文件 @
89ddb230
...
...
@@ -5,7 +5,7 @@
* class is no longer available during a subsequent compilation.
* @author maddox
* @build impl
* @compile/fail/ref=MissingSuperRecovery.out -diags:layout=%b:%l:%_%m MissingSuperRecovery.java
* @compile/fail/ref=MissingSuperRecovery.out -
-
diags:layout=%b:%l:%_%m MissingSuperRecovery.java
*/
// Requires "golden" class file 'impl.class', which contains
...
...
langtools/test/tools/javac/modules/AddLimitMods.java
浏览文件 @
89ddb230
...
...
@@ -119,7 +119,7 @@ public class AddLimitMods extends ModuleTestBase {
//real test
new
JavacTask
(
tb
)
.
options
(
"--module-path"
,
modulePath
.
toString
(),
"-
Xshould
stop:ifNoError=FLOW"
,
"-
-should-
stop:ifNoError=FLOW"
,
"--limit-modules"
,
"java.base"
)
.
outdir
(
modulePath
)
.
files
(
findJavaFiles
(
m1
))
...
...
@@ -128,7 +128,7 @@ public class AddLimitMods extends ModuleTestBase {
new
JavacTask
(
tb
)
.
options
(
"--module-path"
,
modulePath
.
toString
(),
"-
Xshould
stop:ifNoError=FLOW"
,
"-
-should-
stop:ifNoError=FLOW"
,
"--limit-modules"
,
"java.base"
,
"--add-modules"
,
"m2"
)
.
outdir
(
modulePath
)
...
...
@@ -138,7 +138,7 @@ public class AddLimitMods extends ModuleTestBase {
new
JavacTask
(
tb
)
.
options
(
"--module-path"
,
modulePath
.
toString
(),
"-
Xshould
stop:ifNoError=FLOW"
,
"-
-should-
stop:ifNoError=FLOW"
,
"--limit-modules"
,
"java.base"
,
"--add-modules"
,
"m2,m3"
)
.
outdir
(
modulePath
)
...
...
@@ -148,7 +148,7 @@ public class AddLimitMods extends ModuleTestBase {
new
JavacTask
(
tb
)
.
options
(
"--module-path"
,
modulePath
.
toString
(),
"-
Xshould
stop:ifNoError=FLOW"
,
"-
-should-
stop:ifNoError=FLOW"
,
"--limit-modules"
,
"m2"
)
.
outdir
(
modulePath
)
.
files
(
findJavaFiles
(
m1
))
...
...
@@ -157,7 +157,7 @@ public class AddLimitMods extends ModuleTestBase {
new
JavacTask
(
tb
)
.
options
(
"--module-path"
,
modulePath
.
toString
(),
"-
Xshould
stop:ifNoError=FLOW"
,
"-
-should-
stop:ifNoError=FLOW"
,
"--limit-modules"
,
"m3"
)
.
outdir
(
modulePath
)
.
files
(
findJavaFiles
(
m1
))
...
...
@@ -166,7 +166,7 @@ public class AddLimitMods extends ModuleTestBase {
new
JavacTask
(
tb
)
.
options
(
"--module-path"
,
modulePath
.
toString
(),
"-
Xshould
stop:ifNoError=FLOW"
,
"-
-should-
stop:ifNoError=FLOW"
,
"--limit-modules"
,
"m3"
,
"--add-modules"
,
"m2"
)
.
outdir
(
modulePath
)
...
...
@@ -473,7 +473,7 @@ public class AddLimitMods extends ModuleTestBase {
auxOptions
,
"--module-path"
,
modulePath
.
toString
(),
"--class-path"
,
classpathOut
.
toString
(),
"-
Xshould
stop:ifNoError=FLOW"
))
"-
-should-
stop:ifNoError=FLOW"
))
.
outdir
(
modulePath
)
.
files
(
findJavaFiles
(
m2
))
.
run
(
success
?
Task
.
Expect
.
SUCCESS
:
Task
.
Expect
.
FAIL
)
...
...
langtools/test/tools/javac/policy/test3/Test.java
浏览文件 @
89ddb230
...
...
@@ -30,7 +30,7 @@
import
java.io.*
;
import
java.util.*
;
// Simple test of -
Xshould
stop:at.
// Simple test of -
-should-
stop:at.
// For each of the permissable values, we compile a file with an error in it,
// then using -XDverboseCompilePolicy we check that the compilation gets as
// far as expected, but no further.
...
...
@@ -83,7 +83,7 @@ public class Test {
args
.
add
(
"-d"
);
args
.
add
(
"."
);
if
(
ssp
.
needOption
)
args
.
add
(
"-
Xshould
stop:at="
+
ssp
);
args
.
add
(
"-
-should-
stop:at="
+
ssp
);
args
.
add
(
new
File
(
System
.
getProperty
(
"test.src"
,
"."
),
"A.java"
).
getPath
());
StringWriter
sw
=
new
StringWriter
();
...
...
langtools/test/tools/javac/positions/TreeEndPosTest.java
浏览文件 @
89ddb230
...
...
@@ -145,7 +145,7 @@ public class TreeEndPosTest {
options
.
add
(
tempDir
.
getPath
());
options
.
add
(
"-d"
);
options
.
add
(
tempDir
.
getPath
());
options
.
add
(
"-
Xshould
stop:at=GENERATE"
);
options
.
add
(
"-
-should-
stop:at=GENERATE"
);
List
<
JavaFileObject
>
sources
=
new
ArrayList
<>();
sources
.
add
(
src
);
...
...
langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess2.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Verify correct implementation of JLS2e 6.6.2.1
* @author maddox
*
* @compile/fail/ref=ProtectedMemberAccess2.out -diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess2.java
* @compile/fail/ref=ProtectedMemberAccess2.out -
-
diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess2.java
*/
// 71 errors expected.
...
...
langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess3.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Verify correct implementation of JLS2e 6.6.2.1
* @author maddox
*
* @compile/fail/ref=ProtectedMemberAccess3.out -diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess3.java
* @compile/fail/ref=ProtectedMemberAccess3.out -
-
diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess3.java
*/
// 46 errors expected.
...
...
langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess4.java
浏览文件 @
89ddb230
...
...
@@ -4,7 +4,7 @@
* @summary Verify correct implementation of JLS2e 6.6.2.1
* @author maddox
*
* @compile/fail/ref=ProtectedMemberAccess4.out -diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess4.java
* @compile/fail/ref=ProtectedMemberAccess4.out -
-
diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess4.java
*/
// 33 errors expected.
...
...
langtools/test/tools/javac/resolve/ResolveHarness.java
浏览文件 @
89ddb230
...
...
@@ -132,8 +132,8 @@ public class ResolveHarness implements javax.tools.DiagnosticListener<JavaFileOb
protected
void
check
()
throws
Exception
{
String
[]
options
=
{
"-
Xshould
stop:at=ATTR"
,
"-
X
debug:verboseResolution=success,failure,applicable,inapplicable,deferred-inference,predef"
"-
-should-
stop:at=ATTR"
,
"-
-
debug:verboseResolution=success,failure,applicable,inapplicable,deferred-inference,predef"
};
AbstractProcessor
[]
processors
=
{
new
ResolveCandidateFinder
(),
null
};
...
...
langtools/test/tools/javac/unicode/UnicodeNewline.java
浏览文件 @
89ddb230
...
...
@@ -3,7 +3,7 @@
* @bug 4739428 4785453
* @summary when \u000a is used, diagnostics are reported on the wrong line.
*
* @compile/fail/ref=UnicodeNewline.out -diags:layout=%b:%l:%_%m UnicodeNewline.java
* @compile/fail/ref=UnicodeNewline.out -
-
diags:layout=%b:%l:%_%m UnicodeNewline.java
*/
class
UnicodeNewline
{
...
...
langtools/test/tools/sjavac/JavacOptionPrep.java
浏览文件 @
89ddb230
...
...
@@ -96,7 +96,7 @@ public class JavacOptionPrep {
// Ignore this option for now. When the file=... requirement goes
// away, this will be easier to handle.
if
(
option
.
startsWith
(
"-
X
debug:completionDeps"
))
if
(
option
.
startsWith
(
"-
-
debug:completionDeps"
))
continue
;
switch
(
option
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录