summaryrefslogtreecommitdiffstats
path: root/tests/src/org
diff options
context:
space:
mode:
authoraclement <aclement>2006-04-26 16:45:17 +0000
committeraclement <aclement>2006-04-26 16:45:17 +0000
commitc667bcb5088379d74b89c3dc8556b87429e4efb7 (patch)
treee9d296ba9f3347c7484fe2a35445b1956d3f4068 /tests/src/org
parent99882cb91a94c468c185cf11cd6a728604e95bdb (diff)
downloadaspectj-c667bcb5088379d74b89c3dc8556b87429e4efb7.tar.gz
aspectj-c667bcb5088379d74b89c3dc8556b87429e4efb7.zip
test and fix for 138286
Diffstat (limited to 'tests/src/org')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java2
-rw-r--r--tests/src/org/aspectj/systemtest/ajc152/ajc152.xml18
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
index 4026dc802..261cc4f8b 100644
--- a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
@@ -38,6 +38,8 @@ public class Ajc152Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// public void testReferencePCutInPerClause_pr138219() { runTest("Can't use a FQ Reference pointcut in any pointcut expression referenced by a per-clause");}
// public void testDoubleAnnotationMatching_pr138223() { runTest("Double at annotation matching (no binding)");}
+ public void testNoClassCastExceptionWithPerThis_pr138286() { runTest("No ClassCastException with perThis");}
+
// this next one reported as a bug by Rob Harrop, but I can't reproduce the failure yet...
//public void testAtAspectWithReferencePCPerClause_pr138220() { runTest("@Aspect with reference pointcut in perclause");}
diff --git a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
index cb7cd1fe1..0d49de371 100644
--- a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
+++ b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
@@ -165,4 +165,22 @@
</compile>
</ajc-test>
+ <ajc-test dir="bugs152/pr138286" pr="138286" title="No ClassCastException with perThis">
+ <compile files="A.aj" options="-1.5 -showWeaveInfo">
+ <message kind="weave" text="Join point 'initialization(void A.&lt;init&gt;())' in Type 'A' (A.aj:9) advised by before advice from 'A' (A.aj:13) [with runtime test]"/>
+ <message kind="weave" text="Join point 'initialization(void Soo.&lt;init&gt;())' in Type 'Soo' (A.aj:31) advised by before advice from 'A' (A.aj:13) [with runtime test]"/>
+ <message kind="weave" text="Join point 'initialization(void Goo.&lt;init&gt;())' in Type 'Goo' (A.aj:27) advised by before advice from 'A' (A.aj:13) [with runtime test]"/>
+ <message kind="weave" text="Join point 'initialization(void Foo.&lt;init&gt;())' in Type 'Foo' (A.aj:25) advised by before advice from 'A' (A.aj:13) [with runtime test]"/>
+ <message kind="weave" text="Join point 'initialization(void Boo.&lt;init&gt;())' in Type 'Boo' (A.aj:29) advised by before advice from 'A' (A.aj:13) [with runtime test]"/>
+ </compile>
+ <run class="A">
+ <stderr>
+ <line text="class Foo"/>
+ <line text="class Boo"/>
+ <line text="class Boo"/> <!-- this one is because of the super() call in Soo's default ctor -->
+ <line text="class Soo"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
</suite> \ No newline at end of file