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.

PR348.java 423B

1234567891011121314151617
  1. public class Mark {
  2. public static void main(String[] args) {
  3. new Mark().realMain(args);
  4. }
  5. public void realMain(String[] args) {
  6. new Bug().go(null);
  7. org.aspectj.testing.Tester.check(false, "shouldn't have compiled");
  8. }
  9. }
  10. class Bug {
  11. void go(String s){}
  12. }
  13. aspect A {
  14. pointcut p1(String s, int y): calls (* *.go(s)) && within(*);
  15. before(String y2, int y): p1(y2, int) {}
  16. }