summaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authoraclement <aclement>2005-07-29 13:20:10 +0000
committeraclement <aclement>2005-07-29 13:20:10 +0000
commit0401dd1abd3417b49640ace6e477c2e0a2ba36e6 (patch)
tree79075740ba3ea1ff97f4cdea64a3c2afcdb461c0 /tests/java5
parent1bf54ea183838be7c5ecb1941976e143d6549d9a (diff)
downloadaspectj-0401dd1abd3417b49640ace6e477c2e0a2ba36e6.tar.gz
aspectj-0401dd1abd3417b49640ace6e477c2e0a2ba36e6.zip
genericitds: using wildcard '? extends' with typevariables.
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/generics/itds/GenericMethodITD3.aj20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/GenericMethodITD3.aj b/tests/java5/generics/itds/GenericMethodITD3.aj
new file mode 100644
index 000000000..f12c39c37
--- /dev/null
+++ b/tests/java5/generics/itds/GenericMethodITD3.aj
@@ -0,0 +1,20 @@
+import java.util.*;
+
+class Base { }
+
+public class GenericMethodITD3 {
+
+ public static void main(String[] argv) {
+ List<A> as = new ArrayList<A>();
+ List<B> bs = new ArrayList<B>();
+ Base.simple(as,bs);
+ }
+
+ class A {}
+ class B extends A {}
+}
+
+
+aspect X {
+ <E> void Base.simple(List<E> one,List<? extends E> two) {}
+}