blob: 87c31350ce3d8bdb80a5e27207bb208d289b6287 (
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
|
import org.aspectj.testing.Tester;
public class Driver {
public static void main(String[] args) { test(); }
public static void test() {
I i = new C4();
Tester.checkEqual(i.m(), 42, "i.m()");
}
}
interface I {}
abstract class C1 implements I{}
class C2 extends C1 implements I {}
class C3 extends C1 {}
class C4 extends C2 {}
aspect Aspect {
//introduction I {
public int I.m() {return 42;}
//}
}
|