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.

AspectInInterfaceCF.java 492B

1234567891011121314151617
  1. import org.aspectj.testing.Tester;
  2. public class AspectInInterfaceCF {
  3. public static void main(String[] args) {
  4. Tester.checkEvents("before");
  5. }
  6. }
  7. interface HasPrivateAspect {
  8. /** @testcase PR#534 static aspect in interface causes CE if - usejavac */
  9. private static aspect Inner {
  10. before(): execution(* main(..)) { Tester.event("before"); }
  11. }
  12. protected static aspect Inner1 {
  13. before(): execution(* main(..)) { Tester.event("before"); }
  14. }
  15. }