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.

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