]> source.dussan.org Git - aspectj.git/commitdiff
225916: test and fix: when pipelining use the binding to determine anonymity
authoraclement <aclement>
Mon, 7 Apr 2008 06:35:31 +0000 (06:35 +0000)
committeraclement <aclement>
Mon, 7 Apr 2008 06:35:31 +0000 (06:35 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java

index dd1ccc15fe69dc2ad1bcb648ad8d59147be66f0a..43b133bae101e1d5272eba0d0a2ebc11a99cb53c 100644 (file)
@@ -132,7 +132,9 @@ public class EclipseSourceType extends AbstractReferenceTypeDelegate {
        }
        
        public boolean isAnonymous() {
-               return ((declaration.modifiers & (ASTNode.IsAnonymousType | ASTNode.IsLocalType)) != 0);
+         if (declaration.binding != null)
+            return declaration.binding.isAnonymousType();
+        return ((declaration.modifiers & (ASTNode.IsAnonymousType | ASTNode.IsLocalType)) != 0);
        }
        
        public boolean isNested() {