From 31d8e259e5cd8b1b4810d69bbf4b9ea45ae4a4c8 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Fri, 31 May 2013 23:07:29 -0700 Subject: Use class file attributes to find containing class https://bugs.eclipse.org/bugs/show_bug.cgi?id=407494 --- .../reflect/Java15ReflectionBasedReferenceTypeDelegate.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'weaver5') diff --git a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java index 695dd7567..2782bddb5 100644 --- a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java +++ b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java @@ -364,5 +364,16 @@ public class Java15ReflectionBasedReferenceTypeDelegate extends ReflectionBasedR public boolean isAnonymous() { return this.myClass.isAnonymousClass(); } + + @Override + public boolean isNested() { + return this.myClass.isMemberClass(); + } + + @Override + public ResolvedType getOuterClass() { + return ReflectionBasedReferenceTypeDelegateFactory.resolveTypeInWorld( + myClass.getEnclosingClass(),world); + } } -- cgit v1.2.3