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.

1234567891011121314
  1. public aspect pr107059_2 {
  2. before() : target(@Foo *) { // not allowed type pattern in target of course!
  3. System.out.println("hi");
  4. }
  5. void bar(Object o) {
  6. o.toString(); // generates o hasAnnotation(Foo.class) test
  7. }
  8. }
  9. @interface Foo {}