aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/genericaspects/GenericAspectE.aj
blob: 987f3d1a27fcc3d867e4dc583dd3861945c073a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.util.*;

// Dumbed down to a normal aspect - as its generic form was failing...
public aspect GenericAspectE { 

  public    void IUtil<Z>.print1() {}
  public    void IUtil<Z>.print2(Z n) {}
  public List<Z> IUtil<Z>.print3() {return null;}

  public static void main(String []argv) {
    Base b = new Base();
    b.print1();
    b.print2("hello");
    List<String> s = b.print3();
  }
}

interface IUtil<X> { }

class Base implements IUtil<String> {}