aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/visibility/PublicITDs.aj
diff options
context:
space:
mode:
authoraclement <aclement>2005-08-08 08:33:09 +0000
committeraclement <aclement>2005-08-08 08:33:09 +0000
commit7e71de736f50a564628a7b04b36f2b6d07f73b5a (patch)
treeb5d16bf943b63d2c0240b8de83519e7ee399e7e0 /tests/java5/generics/itds/visibility/PublicITDs.aj
parent8f4da67cd5008837d59c6a182558b8403cbff58a (diff)
downloadaspectj-7e71de736f50a564628a7b04b36f2b6d07f73b5a.tar.gz
aspectj-7e71de736f50a564628a7b04b36f2b6d07f73b5a.zip
genericitds: test programs
Diffstat (limited to 'tests/java5/generics/itds/visibility/PublicITDs.aj')
-rw-r--r--tests/java5/generics/itds/visibility/PublicITDs.aj35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/visibility/PublicITDs.aj b/tests/java5/generics/itds/visibility/PublicITDs.aj
new file mode 100644
index 000000000..25d58b4a3
--- /dev/null
+++ b/tests/java5/generics/itds/visibility/PublicITDs.aj
@@ -0,0 +1,35 @@
+import java.util.*;
+
+class Base {
+
+}
+
+public class PublicITDs {
+
+ public static void main(String[] argv) {
+ List<Double> l1 = new ArrayList<Double>();
+ Base b = new Base();
+ b.publicMethod1(l1);
+ b.publicMethod2(l1,l1);
+ Base b2 = new Base(l1);
+ Base b3 = new Base(l1,l1);
+ Map<Integer,Double> m1 = new HashMap<Integer,Double>();
+ Base b4 = new Base(l1,m1);
+ }
+
+}
+
+aspect X {
+
+ // methods
+ public <R extends Number> void Base.publicMethod1(List<R> lr) {}
+ public <R extends Number> void Base.publicMethod2(List<R> lr1,List<R> lr2) {}
+
+ // ctor
+ public <P extends Number> Base.new(List<P> lr) {}
+ public <P extends Number> Base.new(List<P> lr1,List<P> lr2) {}
+ public <P,Q extends Number> Base.new(List<P> lp,Map<Q,P> m1) {}
+
+ // what use is this next one??
+ // public <R extends Number> R Base.publicMethod3() { return null;}
+}