diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-26 10:04:43 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-11-26 10:50:32 +0100 |
commit | a6971710ac347c7574ee003e5354fb876d5d5e87 (patch) | |
tree | 95f1083bedf2d6a57ead48ca804757d0c4a93a82 | |
parent | 3c092da93ada3bd99b04b37633fb844a14b8c132 (diff) | |
download | lombok-a6971710ac347c7574ee003e5354fb876d5d5e87.tar.gz lombok-a6971710ac347c7574ee003e5354fb876d5d5e87.tar.bz2 lombok-a6971710ac347c7574ee003e5354fb876d5d5e87.zip |
Fixed @PrintAST, which wouldn't do anything at all in javac mode since resolution support was added.
-rw-r--r-- | src/core/lombok/javac/HandlerLibrary.java | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |