aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2012-04-16 15:02:02 -0700
committerAndy Clement <andrew.clement@gmail.com>2012-04-16 15:02:02 -0700
commit463c5f1d3eab245424929395fc7239fdc04e1eaa (patch)
tree5054188ffca5ae775264cc3a6c5da89c4303204a
parent724823aa185922c9d2fd13a0c56049862d3ec0bb (diff)
downloadaspectj-463c5f1d3eab245424929395fc7239fdc04e1eaa.tar.gz
aspectj-463c5f1d3eab245424929395fc7239fdc04e1eaa.zip
declare @type xml testcode
-rw-r--r--tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc170/ajc170.xml11
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
index b51ce51f3..47329f52a 100644
--- a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
@@ -51,6 +51,10 @@ public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// runTest("dec at field ordering 2");
// }
+ public void testXmlDefsDeclareAnnoType() {
+ runTest("xml defined dec anno - type");
+ }
+
public void testXmlDefsDeclareAnnoMethod() {
runTest("xml defined dec at method");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml
index a9069d531..300dd9454 100644
--- a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml
+++ b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml
@@ -156,6 +156,17 @@
</stdout>
</run>
</ajc-test>
+
+ <ajc-test dir="bugs170/xmldefs" title="xml defined dec anno - type">
+ <compile files="Hello7.java Anno7.java" options="-1.5"/>
+ <run class="Hello7" ltw="aop7.xml">
+ <stdout>
+ <line text="Annotations on Hello7? true"/>
+ <line text="Annotation count is 1"/>
+ <line text="@Anno"/>
+ </stdout>
+ </run>
+ </ajc-test>
<ajc-test dir="bugs170/pr73507" title="public ITDfs - 1">
<compile files="Case1.java" options="-1.5"/>