blob: 183c828590b6f1424a51471f3a4d417632209031 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
import java.lang.annotation.*;
@Deprecated @Marker
public aspect Annot {
pointcut test() : within(@Marker *);// *);
declare warning: staticinitialization(@Deprecated *): "deprecated";
declare warning: staticinitialization(@Marker *): "marker";
public static void main(String argz[]) {
new Baz().foo();
}
}
@Deprecated @Marker
class Baz {
public void foo() {}
}
@Retention(RetentionPolicy.RUNTIME)
@interface Marker {
}
|