diff options
author | aclement <aclement> | 2010-06-07 23:49:07 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-06-07 23:49:07 +0000 |
commit | 504d9e04700f51f21c236f911c882bace3dd2052 (patch) | |
tree | 9138ed5ae66b9d43d30eb914d034f4ce57888dd3 | |
parent | 3b0f31d722f946601a2b30750bfb9aa2d5479f05 (diff) | |
download | aspectj-504d9e04700f51f21c236f911c882bace3dd2052.tar.gz aspectj-504d9e04700f51f21c236f911c882bace3dd2052.zip |
itd inner classes
-rw-r--r-- | org.aspectj.matcher/src/org/aspectj/weaver/ResolvedTypeMunger.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedTypeMunger.java b/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedTypeMunger.java index 609973d49..94503d5ea 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedTypeMunger.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/ResolvedTypeMunger.java @@ -56,7 +56,7 @@ public abstract class ResolvedTypeMunger { private Set<ResolvedMember> superMethodsCalled = Collections.emptySet(); - private ISourceLocation location; // Lost during serialize/deserialize ! + private ISourceLocation location; private ResolvedType onType = null; @@ -106,7 +106,7 @@ public abstract class ResolvedTypeMunger { public boolean matches(ResolvedType matchType, ResolvedType aspectType) { if (onType == null) { - onType = matchType.getWorld().resolve(signature.getDeclaringType()); + onType = matchType.getWorld().resolve(getDeclaringType()); if (onType.isRawType()) { onType = onType.getGenericType(); } @@ -160,6 +160,8 @@ public abstract class ResolvedTypeMunger { return MethodDelegateTypeMunger.FieldHostTypeMunger.readFieldHost(s, context); } else if (kind == MethodDelegate2) { return MethodDelegateTypeMunger.readMethod(s, context, true); + } else if (kind == InnerClass) { + return NewMemberClassTypeMunger.read(s, context); } else { throw new RuntimeException("unimplemented"); } @@ -490,4 +492,8 @@ public abstract class ResolvedTypeMunger { throw new BCException("Dont call parameterizeWith() on a type munger of this kind: " + this.getClass()); } + public UnresolvedType getDeclaringType() { + return getSignature().getDeclaringType(); + } + } |