langtools/src/share/classes/com/sun/tools/javac/main/Option.java
changeset 15043 4aae62f3b9a8
parent 15031 c4fad55a5681
child 15724 3063fb01c8a1
equal deleted inserted replaced
15042:88ce00b3841a 15043:4aae62f3b9a8
     1 /*
     1 /*
     2  * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   309         }
   309         }
   310     },
   310     },
   311 
   311 
   312     // This option exists only for the purpose of documenting itself.
   312     // This option exists only for the purpose of documenting itself.
   313     // It's actually implemented by the launcher.
   313     // It's actually implemented by the launcher.
   314     J("-J", "opt.arg.flag", "opt.J", STANDARD, INFO) {
   314     J("-J", "opt.arg.flag", "opt.J", STANDARD, INFO, true) {
   315         @Override
   315         @Override
   316         public boolean process(OptionHelper helper, String option) {
   316         public boolean process(OptionHelper helper, String option) {
   317             throw new AssertionError
   317             throw new AssertionError
   318                 ("the -J flag should be caught by the launcher.");
   318                 ("the -J flag should be caught by the launcher.");
   319         }
   319         }
   414         }
   414         }
   415     },
   415     },
   416 
   416 
   417     // This option exists only for the purpose of documenting itself.
   417     // This option exists only for the purpose of documenting itself.
   418     // It's actually implemented by the CommandLine class.
   418     // It's actually implemented by the CommandLine class.
   419     AT("@", "opt.arg.file", "opt.AT", STANDARD, INFO) {
   419     AT("@", "opt.arg.file", "opt.AT", STANDARD, INFO, true) {
   420         @Override
   420         @Override
   421         public boolean process(OptionHelper helper, String option) {
   421         public boolean process(OptionHelper helper, String option) {
   422             throw new AssertionError("the @ flag should be caught by CommandLine.");
   422             throw new AssertionError("the @ flag should be caught by CommandLine.");
   423         }
   423         }
   424     },
   424     },