]> source.dussan.org Git - aspectj.git/commitdiff
253109: testcode
authoraclement <aclement>
Mon, 3 Nov 2008 18:53:33 +0000 (18:53 +0000)
committeraclement <aclement>
Mon, 3 Nov 2008 18:53:33 +0000 (18:53 +0000)
tests/bugs163/pr253109/CodeThree.java [new file with mode: 0644]

diff --git a/tests/bugs163/pr253109/CodeThree.java b/tests/bugs163/pr253109/CodeThree.java
new file mode 100644 (file)
index 0000000..821eb38
--- /dev/null
@@ -0,0 +1,13 @@
+import java.util.*;
+
+public aspect CodeThree {
+  before(): execution(* CodeThree.*(..)) && args(List<Integer>) {} // yes
+  before(): execution(* CodeThree.*(..)) && args(ArrayList<Integer>) {} // yes - runtime check
+  before(): execution(* CodeThree.*(..)) && args(List<Number>) {} // no
+  before(): execution(* CodeThree.*(..)) && args(ArrayList<Number>) {} // no
+  before(): execution(* CodeThree.*(..)) && args(List<? extends Number>) {} // yes
+  before(): execution(* CodeThree.*(..)) && args(ArrayList<? extends Number>) {} // yes - runtime check
+
+  void m(List<Integer> li) {}
+
+}