Added
Link Here
|
1 |
abstract aspect GenericAbstractAspect<T> { |
2 |
abstract protected pointcut pc(); |
3 |
before() : pc() {} |
4 |
} |
5 |
|
6 |
abstract aspect SubGenericAspect<T> extends GenericAbstractAspect<T> { |
7 |
abstract protected pointcut pc1(); |
8 |
abstract protected pointcut pc3(); |
9 |
|
10 |
protected pointcut pc() : pc1(); |
11 |
protected pointcut pc2() : pc3(); |
12 |
} |
13 |
|
14 |
// this should compile with no errors |
15 |
aspect Concrete2 extends SubGenericAspect<String> { |
16 |
protected pointcut pc() : pc1(); |
17 |
protected pointcut pc1() :pc3(); |
18 |
protected pointcut pc3() : execution(* *(String)); |
19 |
} |
20 |
|
21 |
class C { |
22 |
|
23 |
public void method(String s) { |
24 |
} |
25 |
|
26 |
public void method2(int i) { |
27 |
} |
28 |
} |