blob: 61bbb8024266ac8c61fcd06c3ae17d9c0311eaa9 (
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
|
package child;
import parent.ParentMethodCE;
import org.aspectj.testing.*;
public class ChildMethodCE {
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 attempt to concretize abstract aspect without access to abstract member method */
class ParentChild extends ParentMethodCE { // expect CE here: child does not define "defineMethod()" b/c inaccessible
protected void defineMethod() {}
}
|