From a6971710ac347c7574ee003e5354fb876d5d5e87 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 26 Nov 2010 10:04:43 +0100 Subject: Fixed @PrintAST, which wouldn't do anything at all in javac mode since resolution support was added. --- src/core/lombok/javac/HandlerLibrary.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/lombok/javac/HandlerLibrary.java') diff --git a/src/core/lombok/javac/HandlerLibrary.java b/src/core/lombok/javac/HandlerLibrary.java index 8eb7be9f..12a5a370 100644 --- a/src/core/lombok/javac/HandlerLibrary.java +++ b/src/core/lombok/javac/HandlerLibrary.java @@ -1,5 +1,5 @@ /* - * Copyright © 2009 Reinier Zwitserloot and Roel Spilker. + * Copyright © 2009-2010 Reinier Zwitserloot and Roel Spilker. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -172,6 +172,7 @@ public class HandlerLibrary { try { if (container.isResolutionBased() && phase == 1) handled |= container.handle(node); if (!container.isResolutionBased() && phase == 0) handled |= container.handle(node); + if (container.annotationClass == PrintAST.class && phase == 2) handled |= container.handle(node); } catch (AnnotationValueDecodeFail fail) { fail.owner.setError(fail.getMessage(), fail.idx); } catch (Throwable t) { -- cgit