mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-15 14:13:28 +02:00
22 lines
389 B
Java
22 lines
389 B
Java
// 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) {
|
|
|
|
}
|
|
}
|