equal
deleted
inserted
replaced
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"; |