Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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. }