summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-17 09:43:15 +0000
committeraclement <aclement>2006-05-17 09:43:15 +0000
commit4842f1826c3905c2789bc99a2dc841c733092339 (patch)
treee6ddf2c302b220133f961a76a21203117bdc0361 /tests/src
parent40c0d949493e14806799cb4975135998b707c9f2 (diff)
downloadaspectj-4842f1826c3905c2789bc99a2dc841c733092339.tar.gz
aspectj-4842f1826c3905c2789bc99a2dc841c733092339.zip
testcode for 135865 and 142165
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc152/ajc152.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
index 6378b42ca..eafefc2f0 100644
--- a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
+++ b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
@@ -15,6 +15,20 @@
</run>
</ajc-test>
+ <ajc-test dir="bugs152/pr135865" title="misbehaving declare annotation">
+ <compile files="B.java,A.java" options="-1.5">
+ <!--message kind="weave" text="Join point 'method-call(void B.foo())' in Type 'A' (A.java:32) advised by before advice from 'Aspect' (A.java:22) [with runtime test]"/>
+ <message kind="weave" text="Join point 'method-call(void A.foo())' in Type 'A' (A.java:33) advised by before advice from 'Aspect' (A.java:22) [with runtime test]"/>
+ <message kind="weave" text="' void B.goo()' (A.java:7) is annotated with @Ann method annotation from 'Aspect' (A.java:27)"/-->
+ </compile>
+ <run class="A">
+ <stdout>
+ <line text="Join point: call(void B.foo())"/>
+ <line text="Join point: call(void B.goo())"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
<ajc-test dir="bugs152/pr129704" title="annotations and generics leading to BCException">
<compile files="A.java" options="-1.5"/>
<run class="A">
@@ -309,4 +323,36 @@
</compile>
</ajc-test>
+ <ajc-test dir="bugs152/pr142165" title="broken concretization">
+ <compile files="C.java" options="-1.5"/>
+ <compile files="A.java" options="-1.5"/>
+ <run class="C" ltw="aop.xml">
+ <stderr>
+ <line text="warning at Type 'AA' (no debug info available)::0 no match for this type name: SomeType [Xlint:invalidAbsoluteTypeName]"/>
+ <line text="foo running"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs152/pr142165" title="broken concretization - 2">
+ <compile files="C.java" options="-1.5"/>
+ <compile files="A.java" options="-1.5"/>
+ <run class="C" ltw="aop2.xml">
+ <stderr>
+ <line text="foo running"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs152/pr142165" title="broken concretization - 3">
+ <compile files="C.java" options="-1.5"/>
+ <compile files="A.java" options="-1.5"/>
+ <run class="C" ltw="aop3.xml">
+ <stderr>
+ <line text="advice"/>
+ <line text="foo running"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
</suite> \ No newline at end of file