]> source.dussan.org Git - aspectj.git/commitdiff
testcase for 167197 - commented out right now.
authoraclement <aclement>
Tue, 30 Oct 2007 08:46:24 +0000 (08:46 +0000)
committeraclement <aclement>
Tue, 30 Oct 2007 08:46:24 +0000 (08:46 +0000)
tests/bugs154/pr167197/AspectBreaker.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc154/Ajc154Tests.java
tests/src/org/aspectj/systemtest/ajc154/ajc154.xml

diff --git a/tests/bugs154/pr167197/AspectBreaker.java b/tests/bugs154/pr167197/AspectBreaker.java
new file mode 100644 (file)
index 0000000..865b7aa
--- /dev/null
@@ -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(* *(..)) {}
+}
index 12671fd55f06e13266babb46b355760cba9ff896..eb77bd94980c7b6df7d580c189595cacc033d2a5 100644 (file)
@@ -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");}
index 02d6e8971102f5111bfb2538cd32ca888f396fdf..ca7c65407bb609ad871715b80eaf9ab89bb2972a 100644 (file)
@@ -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"/-->