summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-21 15:44:05 +0000
committeraclement <aclement>2005-11-21 15:44:05 +0000
commit50e0849b83e326ca262a7bc29c45eef2a4fc9c68 (patch)
treead54bbcbb89fec011d452408078cd517beb23416 /tests
parent6db0502ddfe567f53047f4af44a18ce6c03eee50 (diff)
downloadaspectj-50e0849b83e326ca262a7bc29c45eef2a4fc9c68.tar.gz
aspectj-50e0849b83e326ca262a7bc29c45eef2a4fc9c68.zip
tests for 115250
Diffstat (limited to 'tests')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml22
1 files changed, 17 insertions, 5 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index c0aa8b999..5239733ca 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -69,12 +69,24 @@
</ajc-test>
<ajc-test dir="bugs150" title="parameterized type and around advice">
- <compile files="pr115250.aj" options="-1.5 -Xlint:ignore"/>
- <run class="pr115250"/>
- <!--stderr>
- <line text="Advice running"/>
+ <compile files="pr115250.aj" options="-1.5 -Xlint:ignore">
+ <!-- this first error happens twice, once for each piece of around advice -->
+ <message kind="error" line="10" text="incompatible return type applying to constructor-execution(void pr115250$C.&lt;init&gt;())"/>
+ <message kind="error" line="17" text="incompatible return type applying to constructor-execution(void pr115250$C.&lt;init&gt;())"/>
+ <message kind="error" line="27" text="incompatible return type applying to constructor-execution(void pr115250$C.&lt;init&gt;())"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="bugs150" title="parameterized type and around advice - 2">
+ <compile files="pr115250_2.aj" options="-1.5 -Xlint:ignore -showWeaveInfo">
+ <message kind="weave" text="Join point 'method-execution(pr115250_2$C pr115250_2$C.foo())' in Type 'pr115250_2$C' (pr115250_2.aj:7) advised by around advice from 'pr115250_2$A' (pr115250_2.aj:22)"/>
+ <message kind="weave" text="Join point 'method-execution(pr115250_2$C pr115250_2$C.foo())' in Type 'pr115250_2$C' (pr115250_2.aj:7) advised by around advice from 'pr115250_2$Normal' (pr115250_2.aj:12)"/>
+ </compile>
+ <run class="pr115250_2">
+ <stderr>
+ <line text="funky advice running"/>
</stderr>
- </run-->
+ </run>
</ajc-test>
<ajc-test dir="bugs150/pr115788" title="parser exception">