diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-12-19 20:09:40 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-12-19 20:09:40 +0100 |
commit | ae87a26456245f19d97f8852ea21556cd78e97ef (patch) | |
tree | 1df316ac294e8d9c784c9d3a006ae872404d1345 /src/eclipseAgent/lombok | |
parent | 6b91620d9efab992ee8e909b3e7b9cac0ac6f607 (diff) | |
download | lombok-ae87a26456245f19d97f8852ea21556cd78e97ef.tar.gz lombok-ae87a26456245f19d97f8852ea21556cd78e97ef.tar.bz2 lombok-ae87a26456245f19d97f8852ea21556cd78e97ef.zip |
Now the type resolver also finds top-level types in a compilation unit that name-shadow. Added tests for the type resolver.
Diffstat (limited to 'src/eclipseAgent/lombok')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java index cc72c206..e027b09d 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java @@ -108,6 +108,7 @@ public class PatchDelegate { for (Annotation ann : field.annotations) { if (ann.type == null) continue; TypeBinding tb = ann.type.resolveType(decl.initializerScope); + if (tb == null) continue; if (!charArrayEquals("lombok", tb.qualifiedPackageName())) continue; if (!charArrayEquals("Delegate", tb.qualifiedSourceName())) continue; return true; |