From f05facd4576648122f7bdb80122dc7a1b3f6ecf6 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 2 Dec 2009 04:07:41 +0100 Subject: Make delombok actually work from the command line if tools.jar is not already on your classpath --- src/delombok/lombok/delombok/DelombokApp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/delombok/lombok') diff --git a/src/delombok/lombok/delombok/DelombokApp.java b/src/delombok/lombok/delombok/DelombokApp.java index 71fda96f..76d5aed3 100644 --- a/src/delombok/lombok/delombok/DelombokApp.java +++ b/src/delombok/lombok/delombok/DelombokApp.java @@ -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; -- cgit