langtools/src/share/classes/com/sun/tools/javap/Main.java
changeset 2987 2e0ca9f4893d
parent 735 372aa565a221
child 5520 86e4b9a9da40
equal deleted inserted replaced
2986:5370c4ae4f6f 2987:2e0ca9f4893d
    40      * Main entry point for the launcher.
    40      * Main entry point for the launcher.
    41      * Note: This method calls System.exit.
    41      * Note: This method calls System.exit.
    42      * @param args command line arguments
    42      * @param args command line arguments
    43      */
    43      */
    44     public static void main(String[] args) {
    44     public static void main(String[] args) {
    45         if (args.length >= 1 && args[0].equals("-Xold")) {
       
    46             String[] nArgs = new String[args.length - 1];
       
    47             System.arraycopy(args, 1, nArgs, 0, nArgs.length);
       
    48             sun.tools.javap.Main.main(args);  // calls System.exit
       
    49             System.exit(1);
       
    50         }
       
    51 
       
    52         JavapTask t = new JavapTask();
    45         JavapTask t = new JavapTask();
    53         int rc = t.run(args);
    46         int rc = t.run(args);
    54         System.exit(rc);
    47         System.exit(rc);
    55     }
    48     }
    56 
    49