aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2022-03-23 15:44:00 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-03-23 15:44:00 +0700
commit948ad9f39537d9cc9d38e8b5fc6fcb9bd685ed0f (patch)
tree2beb8328385f9306b31e9ac579e55f2bce2644f5 /tests/src
parentf75b7deda8aea78e78335387dde42ba9b5938201 (diff)
parentbd663a7e645a1cb6f357259dfe880855c7016e21 (diff)
downloadaspectj-948ad9f39537d9cc9d38e8b5fc6fcb9bd685ed0f.tar.gz
aspectj-948ad9f39537d9cc9d38e8b5fc6fcb9bd685ed0f.zip
Merge branch 'master' into java-18
# Conflicts: # tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java # tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
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>