aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-01-25 09:04:53 +0000
committeraclement <aclement>2006-01-25 09:04:53 +0000
commit1f4956a4e31ac88bcc97a98da3f84c89413cd0a1 (patch)
treef5ccf4021711ee5fdb65fb1de1ae70b5bacc491d
parenta4bd19d25597a31e1b76cc5fc188c3112bf0f5ff (diff)
downloadaspectj-1f4956a4e31ac88bcc97a98da3f84c89413cd0a1.tar.gz
aspectj-1f4956a4e31ac88bcc97a98da3f84c89413cd0a1.zip
testcode for 122452
-rw-r--r--tests/bugs151/pr122452.aj7
-rw-r--r--tests/bugs151/pr122452_2.aj5
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java3
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/ajc151.xml9
4 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs151/pr122452.aj b/tests/bugs151/pr122452.aj
new file mode 100644
index 000000000..1be5e5051
--- /dev/null
+++ b/tests/bugs151/pr122452.aj
@@ -0,0 +1,7 @@
+public aspect pr122452 {
+ pointcut greeting() : call (* Point.sayHello(..));
+ pointcut greeting2() : call (* related.Hello.sayHello(..));
+ after() returning() : greeting*() {
+ System.out.println(" World!");
+ }
+}
diff --git a/tests/bugs151/pr122452_2.aj b/tests/bugs151/pr122452_2.aj
new file mode 100644
index 000000000..1dbc1da8e
--- /dev/null
+++ b/tests/bugs151/pr122452_2.aj
@@ -0,0 +1,5 @@
+public aspect pr122452_2 {
+ after() returning() : greeting*() {
+ System.out.println(" World!");
+ }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
index 6e872e4e0..16fcdd2fa 100644
--- a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
@@ -27,6 +27,9 @@ public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testParameterizedCollectionFieldMatching_pr124808() { runTest("parameterized collection fields matched via pointcut");}
public void testGenericAspectsAndAnnotations_pr124654() { runTest("generic aspects and annotations");}
public void testCallInheritedGenericMethod_pr124999() { runTest("calling inherited generic method from around advice");}
+ //public void testIncorrectlyReferencingPointcuts_pr122452() { runTest("incorrectly referencing pointcuts");}
+ //public void testIncorrectlyReferencingPointcuts_pr122452_2() { runTest("incorrectly referencing pointcuts - 2");}
+
/////////////////////////////////////////
public static Test suite() {
diff --git a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
index 74dfa3e5b..28e85d036 100644
--- a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
+++ b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
@@ -69,4 +69,13 @@
</stderr>
</run>
</ajc-test>
+
+ <ajc-test dir="bugs151" title="incorrectly referencing pointcuts">
+ <compile files="pr122452.aj" options="-1.5"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs151" title="incorrectly referencing pointcuts - 2">
+ <compile files="pr122452_2.aj" options="-1.5"/>
+ </ajc-test>
+
</suite> \ No newline at end of file