aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features151/newarrayjoinpoint/Four.java
blob: 8381f0c429056515265d9653af51122aae744ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// what about printing the join point?
public class Four {
  public static void main(String []argv) {
    Integer[] Is = new Integer[5];
    Foo f = new Foo(6);
  }
}

aspect X {
  before(): call(Integer[].new(int)) {
	  System.err.println("tjp1=>"+thisJoinPoint);
  }
  before(): call(Foo.new(int)) {
	  System.err.println("tjp2=>"+thisJoinPoint);
  }
}
class Foo {
	Foo(int i) {
		
	}
}