blob: 4a0b8377c56b3ecc2c8e0735849b23743c2eaee1 (
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
31
|
package child;
import parent.ParentCE;
import org.aspectj.testing.*;
public class ChildCE {
public static void main (String[] args) {
new Target().run();
Tester.checkAllEvents();
}
static {
Tester.expectEvent("define");
Tester.expectEvent("run");
}
}
class Target {
public void run(){
Tester.event("run");
}
}
/** @testcase PR#647 concrete aspect unable to access abstract package-private pointcut in parent for overriding */
aspect ParentChild extends ParentCE {// expect CE here: child does not define "define()" b/c inaccessible
protected pointcut define()
: call(public void Target.run());
}
|