aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/visibility/PrivateITDs.aj
blob: 758bc58d704883e6c43d632943bc24060c226b9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import java.util.*;

class Base { 

}

public aspect PrivateITDs {

  public static void main(String[] argv) {
    List<Double> l1 = new ArrayList<Double>();
    Base b = new Base();
    b.privateMethod1(l1);           
    b.privateMethod2(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
  private <R extends Number> void Base.privateMethod1(List<R> lr) {}
  private <R extends Number> void Base.privateMethod2(List<R> lr1,List<R> lr2) {}

  // ctor
  private <P extends Number> Base.new(List<P> lr) { this(); }
  private <P extends Number> Base.new(List<P> lr1,List<P> lr2) { this(); }
  private <P,Q extends Number> Base.new(List<P> lp,Map<Q,P> m1) { this(); }

}