mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
Fixed @PrintAST, which wouldn't do anything at all in javac mode since resolution support was added.
This commit is contained in:
1 parent
3c092da93a
commit
a6971710ac
1 file changed
+2
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user