]> source.dussan.org Git - aspectj.git/commitdiff
hopefully this really is the very very last we'll see of can't find type $Local$...
authoracolyer <acolyer>
Thu, 25 Aug 2005 12:51:01 +0000 (12:51 +0000)
committeracolyer <acolyer>
Thu, 25 Aug 2005 12:51:01 +0000 (12:51 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java

index fca8cac1700ea27c017dac1c674e5be9b3539520..ed892418434218fd2ee6100821ffa2d6db4cde7a 100644 (file)
@@ -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));