runtime NullPointerException when applying around advice to other around advice
<message kind="warning" line="74"/>
</compile>
</ajc-test>
+
+ <ajc-test dir="new" pr="29934"
+ title="can't apply around advice to the execution of around advice"
+ keywords="from-resolved_10x">
+ <compile files="CflowCycles.java"/>
+ <run class="CflowCycles"/>
+ </ajc-test>
</suite>
<message kind="error" line="78"/>
</compile>
</ajc-test>
-
- <ajc-test dir="new" pr="29934"
- title="can't apply around advice to the execution of around advice"
- keywords="from-resolved_10x">
- <compile files="CflowCycles.java"/>
- <run class="CflowCycles"/>
- </ajc-test>
<ajc-test dir="new" pr="660" title="illegal name binding in around cflow"
keywords="from-resolved_104">
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
<suite>
-
+ <ajc-test dir="new" pr="29934"
+ title="can't apply around advice to the execution of around advice"
+ keywords="from-resolved_10x">
+ <compile files="CflowCycles.java"/>
+ <run class="CflowCycles"/>
+ </ajc-test>
<!--
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