summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoraclement <aclement>2006-04-21 17:55:11 +0000
committeraclement <aclement>2006-04-21 17:55:11 +0000
commit5b354c21ff2b4754522f75324f8094958804a753 (patch)
tree041370ac8de806c3c40bf48ff86bafccbe28de65 /tests/src
parent1535ee721c16509713642e20316b226ece69fda9 (diff)
downloadaspectj-5b354c21ff2b4754522f75324f8094958804a753.tar.gz
aspectj-5b354c21ff2b4754522f75324f8094958804a753.zip
testcode for 137496: problem with join point matching on calls to parameterized methods
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java5
-rw-r--r--tests/src/org/aspectj/systemtest/ajc152/ajc152.xml65
2 files changed, 70 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
index bff94e8cd..0e812f5d4 100644
--- a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
@@ -17,6 +17,11 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
public class Ajc152Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testPointcutsAndGenerics_pr137496_1() { runTest("pointcuts and generics - B");}
+ public void testPointcutsAndGenerics_pr137496_2() { runTest("pointcuts and generics - D");}
+ public void testPointcutsAndGenerics_pr137496_3() { runTest("pointcuts and generics - E");}
+ public void testPointcutsAndGenerics_pr137496_4() { runTest("pointcuts and generics - F");}
+ public void testPointcutsAndGenerics_pr137496_5() { runTest("pointcuts and generics - G");}
public void testAspectLibrariesAndASM_pr135001() { runTest("aspect libraries and asm");}
public void testStackOverflow_pr136258() { runTest("stack overflow");}
public void testIncorrectOverridesEvaluation13() { runTest("incorrect overrides evaluation - 1.3"); }
diff --git a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
index 7ee33b766..2c9bd484b 100644
--- a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
+++ b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
@@ -20,6 +20,71 @@
<run class="StatisticsTypeImpl"/>
</ajc-test>
+ <ajc-test dir="bugs152/pr137496" title="pointcuts and generics - B">
+ <compile files="B.java" options="-1.5 -showWeaveInfo">
+ <!--message kind="weave" text="Join point 'method-call(java.lang.String C.pm(java.lang.String))' in Type 'B' (B.java:20) advised by before advice from 'X' (B.java:26)"/-->
+ <message kind="weave" text="Join point 'method-call(java.lang.Object C.pm(java.lang.Object))' in Type 'B' (B.java:20) advised by before advice from 'X' (B.java:26)"/>
+ <!--message kind="weave" text="Join point 'method-call(java.lang.String C.pm2(java.lang.String))' in Type 'B' (B.java:21) advised by before advice from 'X' (B.java:27)"/-->
+ </compile>
+ <run class="B">
+ <stderr>
+ <line text="advice"/>
+ <line text="foo"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs152/pr137496" title="pointcuts and generics - D">
+ <compile files="D.java" options="-1.5 -showWeaveInfo">
+ <message kind="weave" text="Join point 'method-call(java.lang.String CImpl.pm(java.lang.String))' in Type 'D' (D.java:20) advised by before advice from 'X' (D.java:26)"/>
+ <message kind="weave" text="Join point 'method-call(java.lang.String CImpl.pm2(java.lang.String))' in Type 'D' (D.java:21) advised by before advice from 'X' (D.java:27)"/>
+ </compile>
+ <run class="D">
+ <stderr>
+ <line text="advice"/>
+ <line text="foo"/>
+ <line text="advice2"/>
+ <line text="foo"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs152/pr137496" title="pointcuts and generics - E">
+ <compile files="E.java" options="-1.5 -showWeaveInfo">
+ <message kind="weave" text="Join point 'method-call(java.lang.Object C.pm(java.lang.Object))' in Type 'E' (E.java:18) advised by before advice from 'X' (E.java:23)"/>
+ </compile>
+ <run class="E">
+ <stderr>
+ <line text="advice"/>
+ <line text="foo"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
+
+ <ajc-test dir="bugs152/pr137496" title="pointcuts and generics - F">
+ <compile files="F.java" options="-1.5 -showWeaveInfo">
+ <message kind="weave" text="Join point 'method-call(java.lang.Object C.pm(java.lang.Object))' in Type 'F' (F.java:18) advised by before advice from 'X' (F.java:23)"/>
+ </compile>
+ <run class="F">
+ <stderr>
+ <line text="advice"/>
+ <line text="foo"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs152/pr137496" title="pointcuts and generics - G">
+ <compile files="G.java" options="-1.5 -showWeaveInfo">
+ <message kind="warning" line="23" text="advice defined in X has not been applied [Xlint:adviceDidNotMatch]"/>
+ </compile>
+ <run class="G">
+ <stderr>
+ <line text="foo"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
<ajc-test dir="bugs152/binaryDecp" title="incorrect overrides evaluation - 1.3">
<compile files="SubClassLoader.java,SubSubClassLoader.java" options="-1.3" outjar="lib.jar"/>
<compile files="X.aj" inpath="lib.jar" options="-showWeaveInfo">