|
Re: Parameterized vararg match problem [message #56157 is a reply to message #56077] |
Tue, 30 August 2005 16:37 |
Eclipse User |
|
|
|
Originally posted by: adrian_colyer.uk.ibm.com
Roman Kishchenko wrote:
> 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");
> }
> }
>
I confirm I can reproduce this bug. It only occurs when the vararg type
is a type parameter (ie. if you change the definition of method1 to take
an (Object... args) parameter then the matching works as expected.
Please raise a bug report and I'll get this fixed for you.
Thks, Adrian.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04545 seconds