6980021: javac should document @file command line option
Reviewed-by: mcimadamore
This commit is contained in:
parent
b8d95b25f0
commit
f71b78ced3
@ -88,6 +88,7 @@ public enum OptionName {
|
|||||||
O("-O"),
|
O("-O"),
|
||||||
XJCOV("-Xjcov"),
|
XJCOV("-Xjcov"),
|
||||||
XD("-XD"),
|
XD("-XD"),
|
||||||
|
AT("@"),
|
||||||
SOURCEFILE("sourcefile");
|
SOURCEFILE("sourcefile");
|
||||||
|
|
||||||
public final String optionName;
|
public final String optionName;
|
||||||
|
@ -168,6 +168,7 @@ public class RecognizedOptions {
|
|||||||
O,
|
O,
|
||||||
XJCOV,
|
XJCOV,
|
||||||
XD,
|
XD,
|
||||||
|
AT,
|
||||||
SOURCEFILE);
|
SOURCEFILE);
|
||||||
|
|
||||||
static Set<OptionName> javacFileManagerOptions = EnumSet.of(
|
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
|
* TODO: With apt, the matches method accepts anything if
|
||||||
* -XclassAsDecls is used; code elsewhere does the lookup to
|
* -XclassAsDecls is used; code elsewhere does the lookup to
|
||||||
* see if the class name is both legal and found.
|
* 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 candidate class file
|
||||||
* name to a separate list.
|
* name to a separate list.
|
||||||
*/
|
*/
|
||||||
new HiddenOption(SOURCEFILE) {
|
new HiddenOption(SOURCEFILE) {
|
||||||
|
@ -146,6 +146,8 @@ javac.opt.printProcessorInfo=\
|
|||||||
Print information about which annotations a processor is asked to process
|
Print information about which annotations a processor is asked to process
|
||||||
javac.opt.prefer=\
|
javac.opt.prefer=\
|
||||||
Specify which file to read when both a source file and class file are found for an implicitly compiled class
|
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
|
## errors
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* @test
|
* @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
|
* @summary need test program to validate javac resource bundles
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user