Make delombok actually work from the command line if tools.jar is not already on your classpath

This commit is contained in:
Roel Spilker committed 2009-12-02 04:07:41 +01:00
1 parent 2ef7ef3e9f
commit f05facd457
1 file changed
+1 -1
@@ -108,7 +108,7 @@ public class DelombokApp implements LombokApp {
}
};
try {
loader.loadClass("lombok.delombok.Delombok").getMethod("main", String[].class).invoke(null, new Object[] {args});
loader.loadClass("lombok.delombok.Delombok").getMethod("main", String[].class).invoke(null, new Object[] {args.toArray(new String[0])});
} catch (InvocationTargetException e1) {
Throwable t = e1.getCause();
if (t instanceof Error) throw (Error)t;