blob: 1f1b1f7aba86ff93642797a545d16e8a92cb22d0 (
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
|
// PUREJAVA: Corrrect supercall lookup for method().name()
import org.aspectj.testing.Tester;
public class Driver {
private Foo foo = new Foo();
public static void main(String[] args) { test(); }
public Foo getFoo() { return foo; }
public String bar() {
return getFoo().bar();
}
public static void test() {
Tester.checkEqual(new Driver().bar(), "Foo", "getFoo().bar()");
}
}
class Foo {
public String bar() {
return "Foo";
}
}
|