diff options
Diffstat (limited to 'tests/java5/generics/itds/visibility/PackageITDs.aj')
-rw-r--r-- | tests/java5/generics/itds/visibility/PackageITDs.aj | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/visibility/PackageITDs.aj b/tests/java5/generics/itds/visibility/PackageITDs.aj new file mode 100644 index 000000000..eaa7f3122 --- /dev/null +++ b/tests/java5/generics/itds/visibility/PackageITDs.aj @@ -0,0 +1,30 @@ +import java.util.*; + +class Base { + +} + +public aspect PackageITDs { + + public static void main(String[] argv) { + List<Double> l1 = new ArrayList<Double>(); + Base b = new Base(); + b.packageMethod1(l1); + b.packageMethod2(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); + } + + + // methods + <R extends Number> void Base.packageMethod1(List<R> lr) {} + <R extends Number> void Base.packageMethod2(List<R> lr1,List<R> lr2) {} + + // ctor + <P extends Number> Base.new(List<P> lr) {} + <P extends Number> Base.new(List<P> lr1,List<P> lr2) {} + <P,Q extends Number> Base.new(List<P> lp,Map<Q,P> m1) {} + +} |