選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ClassExtendingAspect.java 380B

12345678910111213141516171819202122
  1. import org.aspectj.testing.*;
  2. public class ClassExtendingAspect {
  3. public static void main(String[] args) {
  4. new ClassExtendingAspect().go(args);
  5. }
  6. void go(String[] args) {
  7. Extends e = new Extends();
  8. Tester.check(false, "shouldn't have compiled!");
  9. }
  10. }
  11. aspect Aspect {
  12. }
  13. class Extends extends Aspect {
  14. pointcut p(): call(* *());
  15. }