From 339b4a6ab18a5dc7a39ca68314fb906fc1dcf6c8 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 30 May 2011 22:30:16 +0200 Subject: Whoops, we broke @Delegate with the last update. Now the CAS check on handled is only done if we are -actually- going to call a handler. --- src/core/lombok/eclipse/HandlerLibrary.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/core/lombok/eclipse') diff --git a/src/core/lombok/eclipse/HandlerLibrary.java b/src/core/lombok/eclipse/HandlerLibrary.java index 109f6fe1..231a00d6 100644 --- a/src/core/lombok/eclipse/HandlerLibrary.java +++ b/src/core/lombok/eclipse/HandlerLibrary.java @@ -155,8 +155,6 @@ public class HandlerLibrary { * @param annotation 'node.get()' - convenience parameter. */ public void handleAnnotation(CompilationUnitDeclaration ast, EclipseNode annotationNode, org.eclipse.jdt.internal.compiler.ast.Annotation annotation) { - if (!checkAndSetHandled(annotation)) return; - String pkgName = annotationNode.getPackageDeclaration(); Collection imports = annotationNode.getImportStatements(); @@ -171,7 +169,7 @@ public class HandlerLibrary { if (container == null) continue; try { - container.handle(annotation, annotationNode); + if (checkAndSetHandled(annotation)) container.handle(annotation, annotationNode); } catch (AnnotationValueDecodeFail fail) { fail.owner.setError(fail.getMessage(), fail.idx); } catch (Throwable t) { -- cgit