aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelShadow.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
index f0b0742d8..6059e7d9f 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelShadow.java
@@ -1206,6 +1206,10 @@ public class BcelShadow extends Shadow {
return;
}
+ // We can't inline around methods if they have around advice on them, this
+ // is because the weaving will extract the body and hence the proceed call.
+ //??? should consider optimizations to recognize simple cases that don't require body extraction
+ enclosingMethod.setCanInline(false);
// start by exposing various useful things into the frame