diff options
author | aclement <aclement> | 2008-07-24 02:20:23 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-07-24 02:20:23 +0000 |
commit | 3a79d88b6d101819880ecbc4696b6cd974ae0dba (patch) | |
tree | e8e4b6ccdedffcd5acedd8353e50a1496a0e0df5 | |
parent | c78628924a9969b5e84ac13cbaf63efa13422d0e (diff) | |
download | aspectj-3a79d88b6d101819880ecbc4696b6cd974ae0dba.tar.gz aspectj-3a79d88b6d101819880ecbc4696b6cd974ae0dba.zip |
241861: test
-rw-r--r-- | tests/bugs162/pr241861/Ann.java | 4 | ||||
-rw-r--r-- | tests/bugs162/pr241861/Asp.java | 3 | ||||
-rw-r--r-- | tests/bugs162/pr241861/Outer.java | 7 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java | 1 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc162/ajc162.xml | 12 |
5 files changed, 26 insertions, 1 deletions
diff --git a/tests/bugs162/pr241861/Ann.java b/tests/bugs162/pr241861/Ann.java new file mode 100644 index 000000000..b6addfd9e --- /dev/null +++ b/tests/bugs162/pr241861/Ann.java @@ -0,0 +1,4 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Ann {} diff --git a/tests/bugs162/pr241861/Asp.java b/tests/bugs162/pr241861/Asp.java new file mode 100644 index 000000000..f9fbc7e20 --- /dev/null +++ b/tests/bugs162/pr241861/Asp.java @@ -0,0 +1,3 @@ +public aspect Asp { + before(): execution(new(@Ann (*),..)) {} +} diff --git a/tests/bugs162/pr241861/Outer.java b/tests/bugs162/pr241861/Outer.java new file mode 100644 index 000000000..f5761cade --- /dev/null +++ b/tests/bugs162/pr241861/Outer.java @@ -0,0 +1,7 @@ + +public class Outer { +// Outer(@Ann String arg) {} + public class Inner { + Inner(@Ann String arg) {} + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java index 92a8f0cb0..df1286a7a 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java @@ -19,6 +19,7 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectJ1.6.2 +// public void testParamAnnoInner_pr241861() { runTest("param annotation inner class"); } public void testAnnotationDecp_pr239441() { runTest("annotation decp"); } public void testAtAspectJPerTarget_pr198181() { runTest("ataspectj ltw pertarget"); } // public void testAnnotationValueDecp_pr238992() { runTest("annotation value decp"); } diff --git a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml index bdc633a97..5c3c494b7 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml +++ b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml @@ -7,6 +7,11 @@ <compile files="Test3.java SampleAspect.java" options="-1.5 -showWeaveInfo -XhasMember"> </compile> </ajc-test> + + <ajc-test dir="bugs162/pr241861" title="param annotation inner class"> + <compile files="Outer.java Ann.java Asp.java" options="-1.5"> + </compile> + </ajc-test> <ajc-test dir="bugs162/pr238992" title="annotation value decp"> <compile files="Foo.java" options="-1.5 -showWeaveInfo"> @@ -58,7 +63,12 @@ <ajc-test dir="bugs162/pr233718" title="parameter subsetting - args binding"> <compile files="ArgsBinding.java" options="-1.5"/> - <run class="ArgsBinding"/> + <run class="ArgsBinding"> + <stdout> + <line text="0) a"/> + <line text="0) b"/> + </stdout> + </run> </ajc-test> <ajc-test dir="bugs162/pr198181" title="ataspectj ltw pertarget"> |