langtools/src/share/classes/com/sun/tools/javac/Main.java
changeset 1789 7ac8c0815000
parent 10 06bc494ca11e
child 5520 86e4b9a9da40
equal deleted inserted replaced
1788:ced0a1a7ec80 1789:7ac8c0815000
    54      */
    54      */
    55     public static void main(String[] args) throws Exception {
    55     public static void main(String[] args) throws Exception {
    56       if (args.length > 0 && args[0].equals("-Xjdb")) {
    56       if (args.length > 0 && args[0].equals("-Xjdb")) {
    57         String[] newargs = new String[args.length + 2];
    57         String[] newargs = new String[args.length + 2];
    58         Class<?> c = Class.forName("com.sun.tools.example.debug.tty.TTY");
    58         Class<?> c = Class.forName("com.sun.tools.example.debug.tty.TTY");
    59         Method method = c.getDeclaredMethod ("main", new Class[] {args.getClass()});
    59         Method method = c.getDeclaredMethod ("main", new Class<?>[] {args.getClass()});
    60         method.setAccessible(true);
    60         method.setAccessible(true);
    61         System.arraycopy(args, 1, newargs, 3, args.length - 1);
    61         System.arraycopy(args, 1, newargs, 3, args.length - 1);
    62         newargs[0] = "-connect";
    62         newargs[0] = "-connect";
    63         newargs[1] = "com.sun.jdi.CommandLineLaunch:options=-esa -ea:com.sun.tools...";
    63         newargs[1] = "com.sun.jdi.CommandLineLaunch:options=-esa -ea:com.sun.tools...";
    64         newargs[2] = "com.sun.tools.javac.Main";
    64         newargs[2] = "com.sun.tools.javac.Main";