diff options
author | Andy Clement <andrew.clement@gmail.com> | 2012-05-25 15:50:47 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2012-05-25 15:50:47 -0700 |
commit | 7aad69eae7052e328ef156200e7ea82a386eed13 (patch) | |
tree | 6e24196821930e63dc2193efb9d380681341a244 /tests | |
parent | 58685c4fd075e55aeb5a8c5eafda20f1c24d259e (diff) | |
download | aspectj-7aad69eae7052e328ef156200e7ea82a386eed13.tar.gz aspectj-7aad69eae7052e328ef156200e7ea82a386eed13.zip |
377130 testsV1_7_0RC1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs170/pr377130/Foo.java | 11 | ||||
-rw-r--r-- | tests/bugs170/pr377130/Foo2.java | 11 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java | 8 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc170/ajc170.xml | 16 |
4 files changed, 46 insertions, 0 deletions
diff --git a/tests/bugs170/pr377130/Foo.java b/tests/bugs170/pr377130/Foo.java new file mode 100644 index 000000000..734ccbcea --- /dev/null +++ b/tests/bugs170/pr377130/Foo.java @@ -0,0 +1,11 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Anno {} + +@Anno +aspect Foo { + public static void main(String []argv) { + System.out.println(Foo.class.getAnnotation(Anno.class)); + } +} diff --git a/tests/bugs170/pr377130/Foo2.java b/tests/bugs170/pr377130/Foo2.java new file mode 100644 index 000000000..b1b194f61 --- /dev/null +++ b/tests/bugs170/pr377130/Foo2.java @@ -0,0 +1,11 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Anno {} + +@Anno +privileged aspect Foo2 { + public static void main(String []argv) { + System.out.println(Foo2.class.getAnnotation(Anno.class)); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java index 47329f52a..3896a93ab 100644 --- a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java @@ -31,6 +31,14 @@ import org.aspectj.weaver.tools.StandardPointcutParser; */ public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase { +// public void testLostAnnos_377130() { +// runTest("missing annos on priv aspects"); +// } +// +// public void testLostAnnos_377130_2() { +// runTest("missing annos on priv aspects - 2"); +// } + public void testAttributeErrorJ7() { runTest("attribute issue with J7"); } diff --git a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml index 300dd9454..459ba902c 100644 --- a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml +++ b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml @@ -2,6 +2,22 @@ <suite> + <ajc-test dir="bugs170/pr377130" title="missing annos on priv aspects"> + <compile files="Foo.java" options="-1.5"/> + <run class="Foo"> + <stdout> + <line text="@Anno()"/></stdout> + </run> + </ajc-test> + + <ajc-test dir="bugs170/pr377130" title="missing annos on priv aspects - 2"> + <compile files="Foo2.java" options="-1.5"/> + <run class="Foo2"> + <stdout> + <line text="@Anno()"/></stdout> + </run> + </ajc-test> + <ajc-test dir="bugs170/pr376351" title="attribute issue with J7"> <compile files="R.java R1.java" outjar="code.jar" options="-1.5"/> <compile files="RAj.java" options="-1.7 -Xlint:ignore" outjar="aspects.jar" classpath="code.jar"/> |