123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 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 {
-
-
-
- }
|