blob: 04c754d6c2955098c24d4b8adbdda490db39b24b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
interface Interface {}
abstract class Parent {}
class Child extends Parent implements Interface {}
public aspect pr102212 {
// illegal modifier combination not caught by ajc
public abstract synchronized void Parent._abstract();
public synchronized void Child._abstract() {}
// the following is legal - it's a default implementation....
public /* implicit abstract */ synchronized void Interface._interface() {}
// use Child to make java complain: "illegal modifiers: 0x421"
// (this corresponds to "public abstract synchronized")
public static void main(String[] args) {
new Child();
}
}
|