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.

Application.java 564B

123456789101112131415161718
  1. import java.lang.annotation.Annotation;
  2. /**
  3. * {@code FooAspect} should add {@code @BarAnnotation(name = "from FooAspect")}.
  4. * <p>
  5. * This fails in AspectJ 1.9.5 to 1.9.8.RC2 due to a removed safeguard in JDT Core,
  6. * if the aspect is in a separate library on the aspectpath.
  7. * <p>
  8. * See https://github.com/eclipse-aspectj/aspectj/issues/105
  9. */
  10. @FooAnnotation
  11. public class Application {
  12. public static void main(String[] args) {
  13. for (Annotation annotation : Application.class.getDeclaredAnnotations()) {
  14. System.out.println(annotation);
  15. }
  16. }
  17. }