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.

Four.java 389B

123456789101112131415161718192021
  1. // what about printing the join point?
  2. public class Four {
  3. public static void main(String []argv) {
  4. Integer[] Is = new Integer[5];
  5. Foo f = new Foo(6);
  6. }
  7. }
  8. aspect X {
  9. before(): call(Integer[].new(int)) {
  10. System.err.println("tjp1=>"+thisJoinPoint);
  11. }
  12. before(): call(Foo.new(int)) {
  13. System.err.println("tjp2=>"+thisJoinPoint);
  14. }
  15. }
  16. class Foo {
  17. Foo(int i) {
  18. }
  19. }