Parameterized vararg match problem [message #589898] |
Sun, 28 August 2005 01:44 |
Roman Kishchenko Messages: 6 Registered: July 2009 |
Junior Member |
|
|
Hi,
The pointcut in the example below is not applied.
public class Test1<E> {
public void method1(E...args) {
}
}
public aspect TestAspect {
after(Test1 test1, Object[] arg) returning: execution(*
Test1.method1(Object...)) && target(test1) && args(arg) {
System.out.println("got here");
}
}
If I remove vararg from the pointcut declaration (below) then the pointcut
is applied ok.
public aspect TestAspect {
after(Test1 test1) returning: execution(* Test1.method1(Object...)) &&
target(test1) {
System.out.println("got here");
}
}
Is there something wrong with the declaration or is it a bug?
I am using AJDT M3.
Thanks,
Roman
|
|
|
Powered by
FUDForum. Page generated in 0.03050 seconds