summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegate.java4
-rw-r--r--weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java5
2 files changed, 7 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegate.java b/weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegate.java
index 011a180f9..61cf94cf2 100644
--- a/weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegate.java
+++ b/weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegate.java
@@ -36,7 +36,7 @@ import org.aspectj.weaver.patterns.PerClause;
*/
public class ReflectionBasedReferenceTypeDelegate implements ReferenceTypeDelegate {
- private Class myClass = null;
+ protected Class myClass = null;
private World world;
private ReferenceType resolvedType;
private ResolvedMember[] fields = null;
@@ -148,7 +148,7 @@ public class ReflectionBasedReferenceTypeDelegate implements ReferenceTypeDelega
}
public boolean isAnonymous() {
- return this.myClass.isAnonymousClass();
+ return false;
}
/* (non-Javadoc)
diff --git a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java
index 952fdec08..c1e2d357a 100644
--- a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java
+++ b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java
@@ -306,5 +306,10 @@ public class Java15ReflectionBasedReferenceTypeDelegate extends
return ret;
}
+ @Override
+ public boolean isAnonymous() {
+ return this.myClass.isAnonymousClass();
+ }
+
}