]> source.dussan.org Git - aspectj.git/commitdiff
167197: moved test code to 1.6
authoraclement <aclement>
Mon, 17 Mar 2008 15:48:13 +0000 (15:48 +0000)
committeraclement <aclement>
Mon, 17 Mar 2008 15:48:13 +0000 (15:48 +0000)
tests/bugs160/pr167197/AspectBreaker.java [new file with mode: 0644]
tests/bugs160/pr167197/Breaker2.java [new file with mode: 0644]

diff --git a/tests/bugs160/pr167197/AspectBreaker.java b/tests/bugs160/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(* *(..)) {}
+}
diff --git a/tests/bugs160/pr167197/Breaker2.java b/tests/bugs160/pr167197/Breaker2.java
new file mode 100644 (file)
index 0000000..cab0876
--- /dev/null
@@ -0,0 +1,33 @@
+import java.util.ArrayList;
+
+class B1<T> extends ArrayList<T[]> {
+       public boolean test(T[] obj) {
+         return false; 
+       }
+       
+}
+
+public class Breaker2 extends B1<ICounterValue[]> {
+       private static final long serialVersionUID = 1L;
+       
+    public Breaker2() {
+    }
+
+    public boolean test(ICounterValue[] obj) {
+        this.size();
+        
+        return false;          
+    }
+    
+    public static void main(String[]argv) {
+       new Breaker2().test(new ICounterValue[]{});
+    }
+}
+
+interface ICounterValue {
+       
+}
+
+aspect X {
+  before(): call(* *(..)) {}
+}