aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2002-12-18 18:23:38 +0000
committerjhugunin <jhugunin>2002-12-18 18:23:38 +0000
commit8ff468dda46894084e0878fd9cf68c5798bbdfcf (patch)
treeb826678726e934c7b26480f74cbef7f0820e7c90
parenta1e9e2639d8547a8570f3dd25d8833573ef80b62 (diff)
downloadaspectj-8ff468dda46894084e0878fd9cf68c5798bbdfcf.tar.gz
aspectj-8ff468dda46894084e0878fd9cf68c5798bbdfcf.zip
fixed order of thisJoinPoint and thisJoinPointStaticPart
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java19
1 files changed, 11 insertions, 8 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java b/weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java
index b3a42edf3..6c9e4055a 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelAdvice.java
@@ -61,13 +61,13 @@ public class BcelAdvice extends Advice {
pointcutTest = getPointcut().findResidue(shadow, exposedState);
// make sure thisJoinPoint parameters are initialized
- if ((extraParameterFlags & ThisJoinPoint) != 0) {
- ((BcelShadow)shadow).getThisJoinPointVar();
- }
-
if ((extraParameterFlags & ThisJoinPointStaticPart) != 0) {
((BcelShadow)shadow).getThisJoinPointStaticPartVar();
}
+
+ if ((extraParameterFlags & ThisJoinPoint) != 0) {
+ ((BcelShadow)shadow).getThisJoinPointVar();
+ }
if ((extraParameterFlags & ThisEnclosingJoinPointStaticPart) != 0) {
((BcelShadow)shadow).getThisEnclosingJoinPointStaticPartVar();
@@ -211,14 +211,17 @@ public class BcelAdvice extends Advice {
}
// handle thisJoinPoint parameters
- if ((extraParameterFlags & ThisJoinPoint) != 0) {
- shadow.getThisJoinPointBcelVar().appendLoad(il, fact);
- }
-
+ // these need to be in that same order as parameters in
+ // org.aspectj.ajdt.internal.compiler.ast.AdviceDeclaration
if ((extraParameterFlags & ThisJoinPointStaticPart) != 0) {
shadow.getThisJoinPointStaticPartBcelVar().appendLoad(il, fact);
}
+ if ((extraParameterFlags & ThisJoinPoint) != 0) {
+ shadow.getThisJoinPointBcelVar().appendLoad(il, fact);
+ }
+
+
if ((extraParameterFlags & ThisEnclosingJoinPointStaticPart) != 0) {
shadow.getThisEnclosingJoinPointStaticPartBcelVar().appendLoad(il, fact);
}