aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-14 10:38:47 +0000
committeraclement <aclement>2005-11-14 10:38:47 +0000
commit4b8bed7cff98b2aca5586e604a138c3674453c90 (patch)
tree0016fd8d134513859d3cc8f911e07958f72c4fd1 /tests/src
parent563ab1bc7659edf2d42bed64f131b2a6df1ac56a (diff)
downloadaspectj-4b8bed7cff98b2aca5586e604a138c3674453c90.tar.gz
aspectj-4b8bed7cff98b2aca5586e604a138c3674453c90.zip
tests and fixes for 115235: stackoverflow on concretizing pointcuts (patch from Helen)
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java7
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml13
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index 1bb8a5aa2..f2d435ee0 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -703,6 +703,13 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("no verify error with two args pcds");
}
+ public void testNoStackOverflowWithCircularPCDInGenericAspect() {
+ runTest("no StackOverflowError with circular pcd in generic aspect");
+ }
+
+ public void testNoStackOverflowWithCircularPCDInGenericAspect2() {
+ runTest("no StackOverflowError with circular pcd in generic aspect - 2");
+ }
// helper methods.....
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index b2d871101..174172e84 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -976,6 +976,19 @@
<run class="PR113447e"/>
</ajc-test>
+ <ajc-test dir="bugs150" title="no StackOverflowError with circular pcd in generic aspect">
+ <compile files="pr115235.aj" options="-1.5">
+ <message kind="warning" line="3" text="advice defined in GenericAbstractAspect has not been applied [Xlint:adviceDidNotMatch]"/>
+ <message kind="error" text="circular pointcut declaration involving: pc()"/>
+ <message kind="error" line="20" text="circular pointcut declaration involving: pc2()"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="bugs150" title="no StackOverflowError with circular pcd in generic aspect - 2">
+ <compile files="pr115235b.aj" options="-1.5">
+ </compile>
+ </ajc-test>
+
<!-- ============================================================================ -->
<!-- ============================================================================ -->