From 2502862f896d11b9e386df34f6891918ed443409 Mon Sep 17 00:00:00 2001 From: Philipp Eichhorn Date: Mon, 16 Jul 2012 20:58:19 +0200 Subject: Delombok now also runs attrib on more files; this will reveal more errors which is particularly important for tests. This does mean delombok really does need your entire source/classpath to work right but there's unfortunately no real avoiding this anyway, given that we're doing more and more with resolution. --- src/delombok/lombok/delombok/Delombok.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java index a639a1f6..3f521274 100644 --- a/src/delombok/lombok/delombok/Delombok.java +++ b/src/delombok/lombok/delombok/Delombok.java @@ -381,6 +381,7 @@ public class Delombok { } JavaCompiler delegate = compiler.processAnnotations(compiler.enterTrees(toJavacList(roots))); + delegate.flow(delegate.attribute(delegate.todo)); for (JCCompilationUnit unit : roots) { DelombokResult result = new DelombokResult(catcher.getComments(unit), unit, force || options.isChanged(unit)); if (verbose) feedback.printf("File: %s [%s]\n", unit.sourcefile.getName(), result.isChanged() ? "delomboked" : "unchanged"); -- cgit