aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoravasseur <avasseur>2005-10-21 13:18:55 +0000
committeravasseur <avasseur>2005-10-21 13:18:55 +0000
commit5e17799ef005829b992198048e4b18abff288f78 (patch)
tree71b138a53ce6355bca38a6a2cad941b72b1ed7e3 /weaver
parent62a4476ca3ff54a75a1b435d8dfe49a0e29cbdc6 (diff)
downloadaspectj-5e17799ef005829b992198048e4b18abff288f78.tar.gz
aspectj-5e17799ef005829b992198048e4b18abff288f78.zip
weaveinfo for @AJ ITD
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/MethodDelegateTypeMunger.java2
-rw-r--r--weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java11
2 files changed, 11 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/MethodDelegateTypeMunger.java b/weaver/src/org/aspectj/weaver/MethodDelegateTypeMunger.java
index 26ae5b21d..e7bc20d3b 100644
--- a/weaver/src/org/aspectj/weaver/MethodDelegateTypeMunger.java
+++ b/weaver/src/org/aspectj/weaver/MethodDelegateTypeMunger.java
@@ -58,7 +58,7 @@ public class MethodDelegateTypeMunger extends ResolvedTypeMunger {
break;
}
}
- if (field == null) {
+ if (field == null) {
throw new RuntimeException("Should not happen: aspect field not found for @DeclareParents delegate");
} else {
aspectFieldDelegate = field;
diff --git a/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java b/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java
index 1389d78c6..7717915f1 100644
--- a/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java
+++ b/weaver/src/org/aspectj/weaver/ResolvedTypeMunger.java
@@ -243,7 +243,16 @@ public abstract class ResolvedTypeMunger {
}
throw new BCException("bad kind: " + key);
}
- }
+
+ public String toString() {
+ // we want MethodDelegate to appear as Method in WeaveInfo messages
+ if (MethodDelegate.getName().equals(getName())) {
+ return Method.toString();
+ } else {
+ return super.toString();
+ }
+ }
+ }
// ---- fields