From: acolyer Date: Thu, 25 Aug 2005 12:51:01 +0000 (+0000) Subject: hopefully this really is the very very last we'll see of can't find type $Local$... X-Git-Tag: V1_5_0M3~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4d2c46f3f99d7ca0bbfbdbac6adb92f64a851653;p=aspectj.git hopefully this really is the very very last we'll see of can't find type $Local$ messages --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java index fca8cac17..ed8924184 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java @@ -261,11 +261,13 @@ public class EclipseFactory { } // LocalTypeBinding have a name $Local$, we can get the real name by using the signature.... - if (binding.isLocalType()) { + if (binding instanceof LocalTypeBinding) { LocalTypeBinding ltb = (LocalTypeBinding) binding; if (ltb.constantPoolName() != null && ltb.constantPoolName().length > 0) { return UnresolvedType.forSignature(new String(binding.signature())); - } + } else { + return UnresolvedType.forSignature(new String(ltb.genericTypeSignature())); + } } return UnresolvedType.forName(getName(binding));