您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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