aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java17
-rw-r--r--tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml316
2 files changed, 333 insertions, 0 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java b/tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java
index cb3b781bb..8453bc163 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java
@@ -21,6 +21,23 @@ public class Bugs198Tests extends XMLBasedAjcTestCase {
runTest("ITD annotation with mandatory parameter via aspectpath");
}
+ public void testAsyncProceedNestedAroundAdvice_gh128() {
+ runTest("asynchronous proceed for nested around-advice (@AspectJ)");
+ }
+
+ public void testAsyncProceedNestedAroundAdviceThreadPool_gh128() {
+ // TODO: future improvement, see https://github.com/eclipse/org.aspectj/issues/141
+ // runTest("asynchronous proceed for nested around-advice (@AspectJ, thread pool)");
+ }
+
+ public void testAsyncProceedNestedAroundAdviceNative_gh128() {
+ runTest("asynchronous proceed for nested around-advice (native)");
+ }
+
+ public void testAsyncProceedNestedAroundAdviceNativeThreadPool_gh128() {
+ runTest("asynchronous proceed for nested around-advice (native, thread pool)");
+ }
+
public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(Bugs198Tests.class);
}
diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
index 85bd872b3..6f2a34274 100644
--- a/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
+++ b/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
@@ -100,4 +100,320 @@
<compile files="Buffers.java" options="--release 8"/>
</ajc-test>
+ <ajc-test dir="bugs198/github_128" title="asynchronous proceed for nested around-advice (@AspectJ)">
+ <compile files="Application.java MarkerA.java MarkerB.java annotation_syntax/MarkerAAspect.aj annotation_syntax/MarkerBAspect.aj" options="-1.8" />
+ <run class="Application" options="1,1">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ </stdout>
+ </run>
+ <run class="Application" options="2,1">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ </stdout>
+ </run>
+ <run class="Application" options="1,2">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ </stdout>
+ </run>
+ <run class="Application" options="2,2">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs198/github_128" title="asynchronous proceed for nested around-advice (@AspectJ, thread pool)">
+ <compile files="Application.java MarkerA.java MarkerB.java annotation_syntax/MarkerAAspect.aj annotation_syntax/MarkerBAspect.aj" options="-1.8" />
+ <run class="Application" options="1,1,true">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ </stdout>
+ </run>
+ <run class="Application" options="2,1,true">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ </stdout>
+ </run>
+ <run class="Application" options="1,2,true">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ </stdout>
+ </run>
+ <run class="Application" options="2,2,true">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs198/github_128" title="asynchronous proceed for nested around-advice (native)">
+ <compile files="Application.java MarkerA.java MarkerB.java native_syntax/MarkerAAspect.aj native_syntax/MarkerBAspect.aj" options="-1.8" />
+ <run class="Application" options="1,1">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ </stdout>
+ </run>
+ <run class="Application" options="2,1">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ </stdout>
+ </run>
+ <run class="Application" options="1,2">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ </stdout>
+ </run>
+ <run class="Application" options="2,2">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs198/github_128" title="asynchronous proceed for nested around-advice (native, thread pool)">
+ <compile files="Application.java MarkerA.java MarkerB.java native_syntax/MarkerAAspect.aj native_syntax/MarkerBAspect.aj" options="-1.8" />
+ <run class="Application" options="1,1,true">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ </stdout>
+ </run>
+ <run class="Application" options="2,1,true">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ </stdout>
+ </run>
+ <run class="Application" options="1,2,true">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ </stdout>
+ </run>
+ <run class="Application" options="2,2,true">
+ <stdout ordered="no">
+ <line text=">> Outer intercept"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Outer proceed"/>
+ <line text=" >> Inner intercept"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" &lt;&lt; Inner intercept"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" &lt;&lt; Outer proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" >> Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text=" Doing something"/>
+ <line text=" &lt;&lt; Inner proceed"/>
+ <line text="&lt;&lt; Outer intercept"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
</suite>