aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2007-10-30 08:46:24 +0000
committeraclement <aclement>2007-10-30 08:46:24 +0000
commit764b025806700b5e01b415fe078c8709a8816813 (patch)
tree34d079bf53e0bca7ca1743aa59ae410772053486
parenta43eddd4814edd3f4f558a31ee5ec298c4f4b4d3 (diff)
downloadaspectj-764b025806700b5e01b415fe078c8709a8816813.tar.gz
aspectj-764b025806700b5e01b415fe078c8709a8816813.zip
testcase for 167197 - commented out right now.
-rw-r--r--tests/bugs154/pr167197/AspectBreaker.java22
-rw-r--r--tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc154/ajc154.xml9
3 files changed, 35 insertions, 0 deletions
diff --git a/tests/bugs154/pr167197/AspectBreaker.java b/tests/bugs154/pr167197/AspectBreaker.java
new file mode 100644
index 000000000..865b7aac7
--- /dev/null
+++ b/tests/bugs154/pr167197/AspectBreaker.java
@@ -0,0 +1,22 @@
+import java.util.ArrayList;
+
+public class AspectBreaker extends ArrayList<ICounterValue[]> {
+ private static final long serialVersionUID = 1L;
+
+ public AspectBreaker() {
+ }
+
+ public boolean test(ICounterValue[] obj) {
+ this.size();
+
+ return false;
+ }
+}
+
+interface ICounterValue {
+
+}
+
+aspect X {
+ before(): call(* *(..)) {}
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java b/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java
index 12671fd55..eb77bd949 100644
--- a/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java
@@ -45,6 +45,10 @@ public class Ajc154Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// runTest("new pointcut designators in a reference pointcut");
// }
+ //public void testGenericTypeParameterizedWithArrayType_pr167197() { runTest("generic type parameterized with array type");}
+
+
+ //public void testWrongNumberOfTypeParameters_pr176991() { runTest("wrong number of type parameters");}
public void testItdOnGenericInnerInterface_pr203646() { runTest("npe with itd on inner generic interface");}
public void testItdOnGenericInnerInterface_pr203646_A() { runTest("npe with itd on inner generic interface - exampleA");}
public void testItdOnGenericInnerInterface_pr203646_B() { runTest("npe with itd on inner generic interface - exampleB");}
diff --git a/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml b/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml
index 02d6e8971..ca7c65407 100644
--- a/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml
+++ b/tests/src/org/aspectj/systemtest/ajc154/ajc154.xml
@@ -3,6 +3,15 @@
<!-- AspectJ v1.6.0 Tests -->
<suite>
+ <ajc-test dir="bugs154/pr176991" title="wrong number of type parameters">
+ <compile options="-1.5" files="AspectJBugTestCase.java"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs154/pr167197" title="generic type parameterized with array type">
+ <compile options="-1.5" files="AspectBreaker.java"/>
+ </ajc-test>
+
+
<ajc-test dir="bugs154/pr203646" title="npe with itd on inner generic interface">
<compile options="-1.5" files="Bang.java"/>
<!--compile options="-1.5 -emacssym" files="Bang.java"/-->