1.1 --- a/src/share/classes/com/sun/tools/javac/main/RecognizedOptions.java Mon Mar 07 11:37:54 2011 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/main/RecognizedOptions.java Mon Mar 07 13:45:06 2011 -0800 1.3 @@ -168,6 +168,7 @@ 1.4 O, 1.5 XJCOV, 1.6 XD, 1.7 + AT, 1.8 SOURCEFILE); 1.9 1.10 static Set<OptionName> javacFileManagerOptions = EnumSet.of( 1.11 @@ -565,12 +566,27 @@ 1.12 } 1.13 }, 1.14 1.15 + // This option exists only for the purpose of documenting itself. 1.16 + // It's actually implemented by the CommandLine class. 1.17 + new Option(AT, "opt.arg.file", "opt.AT") { 1.18 + @Override 1.19 + String helpSynopsis() { 1.20 + hasSuffix = true; 1.21 + return super.helpSynopsis(); 1.22 + } 1.23 + @Override 1.24 + public boolean process(Options options, String option) { 1.25 + throw new AssertionError 1.26 + ("the @ flag should be caught by CommandLine."); 1.27 + } 1.28 + }, 1.29 + 1.30 /* 1.31 * TODO: With apt, the matches method accepts anything if 1.32 * -XclassAsDecls is used; code elsewhere does the lookup to 1.33 * see if the class name is both legal and found. 1.34 * 1.35 - * In apt, the process method adds the candiate class file 1.36 + * In apt, the process method adds the candidate class file 1.37 * name to a separate list. 1.38 */ 1.39 new HiddenOption(SOURCEFILE) {