From 702abd77dbb7f624146fff6266d7a8741e5aa42a Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 7 Apr 2008 06:35:31 +0000 Subject: [PATCH] 225916: test and fix: when pipelining use the binding to determine anonymity --- .../ajdt/internal/compiler/lookup/EclipseSourceType.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java index dd1ccc15f..43b133bae 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java @@ -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() { -- 2.39.5