summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/sharing/MethodG.aj
blob: d0be22c47a37c4385e7435b0e1b5a0ea1bc79c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.util.*;

public aspect MethodG {

  // visibility options...
  public  List<Z> Base<Z>.i(List<Z> lz) {return null;} // ok
  private List<Z> Base<Z>.j(List<Z> lz) {return null;} // ok
          List<Z> Base<Z>.k(List<Z> lz) {return null;} // ok

  public static void main(String []argv) {
    Base<Integer> base    = new Base<Integer>();
    List<Integer> intList = new ArrayList<Integer>();
    List<Integer> li1 = base.i(intList);
    List<Integer> li2 = base.j(intList);
    List<Integer> li3 = base.k(intList);
  }
}

class Base<N extends Number> { }