blob: b7243ebb6407af9007eaf61ac3272b5a57166245 (
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
32
|
import org.aspectj.testing.Tester;
public class MethodConflictsCF {
public static void main(String[] args) {
}
}
class C implements I1, I2 { //ERR: I1.m1() != I2.m1()
public String ma() { return "C"; }
//private void mp() { }
}
interface BaseI {
public String m1();
public String m2();
}
interface I1 extends BaseI {
static aspect BODY {
public String I1.m1() { return "I1-" + ma(); }
public abstract String I1.ma();
}
}
interface I2 extends BaseI {
static aspect BODY {
public String I2.m2() { return "I2-" + ma(); }
public String I2.m1() { return "I2-" + ma(); } //ERR: I1.m1()
public abstract String I2.ma();
}
}
|