Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
80255a83
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看板
提交
80255a83
编写于
3月 07, 2011
作者:
J
jjg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6980021: javac should document @file command line option
Reviewed-by: mcimadamore
上级
234e96e0
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
2 deletion
+21
-2
src/share/classes/com/sun/tools/javac/main/OptionName.java
src/share/classes/com/sun/tools/javac/main/OptionName.java
+1
-0
src/share/classes/com/sun/tools/javac/main/RecognizedOptions.java
...e/classes/com/sun/tools/javac/main/RecognizedOptions.java
+17
-1
src/share/classes/com/sun/tools/javac/resources/javac.properties
...re/classes/com/sun/tools/javac/resources/javac.properties
+2
-0
test/tools/javac/diags/CheckResourceKeys.java
test/tools/javac/diags/CheckResourceKeys.java
+1
-1
未找到文件。
src/share/classes/com/sun/tools/javac/main/OptionName.java
浏览文件 @
80255a83
...
...
@@ -88,6 +88,7 @@ public enum OptionName {
O
(
"-O"
),
XJCOV
(
"-Xjcov"
),
XD
(
"-XD"
),
AT
(
"@"
),
SOURCEFILE
(
"sourcefile"
);
public
final
String
optionName
;
...
...
src/share/classes/com/sun/tools/javac/main/RecognizedOptions.java
浏览文件 @
80255a83
...
...
@@ -168,6 +168,7 @@ public class RecognizedOptions {
O
,
XJCOV
,
XD
,
AT
,
SOURCEFILE
);
static
Set
<
OptionName
>
javacFileManagerOptions
=
EnumSet
.
of
(
...
...
@@ -565,12 +566,27 @@ public class RecognizedOptions {
}
},
// This option exists only for the purpose of documenting itself.
// It's actually implemented by the CommandLine class.
new
Option
(
AT
,
"opt.arg.file"
,
"opt.AT"
)
{
@Override
String
helpSynopsis
()
{
hasSuffix
=
true
;
return
super
.
helpSynopsis
();
}
@Override
public
boolean
process
(
Options
options
,
String
option
)
{
throw
new
AssertionError
(
"the @ flag should be caught by CommandLine."
);
}
},
/*
* TODO: With apt, the matches method accepts anything if
* -XclassAsDecls is used; code elsewhere does the lookup to
* see if the class name is both legal and found.
*
* In apt, the process method adds the candiate class file
* In apt, the process method adds the candi
d
ate class file
* name to a separate list.
*/
new
HiddenOption
(
SOURCEFILE
)
{
...
...
src/share/classes/com/sun/tools/javac/resources/javac.properties
浏览文件 @
80255a83
...
...
@@ -146,6 +146,8 @@ javac.opt.printProcessorInfo=\
Print information about which annotations a processor is asked to process
javac.opt.prefer
=
\
Specify which file to read when both a source file and class file are found for an implicitly compiled class
javac.opt.AT
=
\
Read options and filenames from file
## errors
...
...
test/tools/javac/diags/CheckResourceKeys.java
浏览文件 @
80255a83
...
...
@@ -23,7 +23,7 @@
/*
* @test
* @bug 6964768 6964461 6964469 6964487 6964460 6964481
* @bug 6964768 6964461 6964469 6964487 6964460 6964481
6980021
* @summary need test program to validate javac resource bundles
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录