summaryrefslogtreecommitdiffstats
path: root/tests/bugs153/pr156058/Bug2.java
blob: 229e7850e668875bf12cebdf5d2c1178934eecd1 (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
aspect MyAspect implements MyInterface<MyClass> {
  before() : MyAspect1<MyClass>.myPointcutInInterface(){ }
}

class MyClass {}

interface MyInterface<T>{
  public abstract static aspect MyAspect1<T> {
    public final pointcut myPointcutInInterface() : call(T *(..));
  }
}

public class Bug2 {
  public static void main(MyClass[]argv) {
    new Bug2().callit();
  }

  public MyClass callit() {
    return null;
  }
}

aspect MyAspect2 implements MyInterface<String> {
	before(): MyAspect1<String>.myPointcutInInterface() {} // shouldn't match...  since the return type of callit is MyClass
}