You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TestSubAspect.java 346B

12345678910111213141516171819
  1. import java.lang.annotation.*;
  2. public aspect TestSubAspect extends GenericAnnotation<MyAnnotation> {
  3. public static void main(String []argv) {
  4. new BasicType().run();
  5. }
  6. }
  7. @Retention(RetentionPolicy.RUNTIME)
  8. @interface MyAnnotation {}
  9. class BasicType {
  10. @MyAnnotation
  11. public void run() {
  12. System.err.println("run running");
  13. }
  14. }