summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-25 12:52:12 +0000
committeracolyer <acolyer>2005-08-25 12:52:12 +0000
commit2172ceec0382a30dd7c8bbcf4e983b70225243a4 (patch)
treee5138bd599771eb27a008e8c300bce66a30bb2d4 /tests/src
parent4d2c46f3f99d7ca0bbfbdbac6adb92f64a851653 (diff)
downloadaspectj-2172ceec0382a30dd7c8bbcf4e983b70225243a4.tar.gz
aspectj-2172ceec0382a30dd7c8bbcf4e983b70225243a4.zip
tests for pr107898 and pr72668
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java8
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml11
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index 8dae040fd..f3fb8cb6f 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -274,6 +274,14 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("Compiler error due to a wrong exception check in try blocks");
}
+ public void testAnonymousInnerClassWithMethodReturningTypeParameter_pr107898() {
+ runTest("anonymous inner class with method returning type parameter");
+ }
+
+ public void testMatchingOfObjectArray() {
+ runTest("matching against Object[]");
+ }
+
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 46ad3374a..a78887390 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -178,6 +178,17 @@
</run>
</ajc-test>
+ <ajc-test title="anonymous inner class with method returning type parameter" pr="107898" dir="bugs150">
+ <compile files="pr107898.aj" options="-1.5"></compile>
+ </ajc-test>
+
+ <ajc-test title="matching against Object[]" pr="72668" dir="bugs150">
+ <compile files="pr72668.aj" options="-1.5">
+ <message kind="error" line="3" text="incompatible return type applying to method-execution(java.lang.Number[] pr72668.getThoseInts())"></message>
+ <message kind="error" line="10" text="incompatible return type applying to method-execution(java.lang.Number[] pr72668.getThoseInts())"></message>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="decp" pr="80249" title="Order of types passed to compiler determines weaving behavior">
<compile files="A.java,B.java,AspectX.java"/>
<run class="B"/>