blob: 413b36ba900dff39c7df08cf4c27b828084620b6 (
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
|
package a;
import org.aspectj.testing.Tester;
/** @testcase PR#626 declared parent not defined in scope of target class declaration (CE in -usejavac only) */
public abstract aspect Outer {
public static void main (String[] args) {
b.Foo foo = new b.Foo() {
public void run() {
Tester.event("run");
}
};
Inner i = (Inner) foo;
i.run();
Tester.checkAllEvents();
}
static {
Tester.expectEvent("run");
}
protected interface Inner {
public void run();
}
}
|