Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Parameterized vararg match problem
Parameterized vararg match problem [message #589898] Sun, 28 August 2005 01:44
Roman Kishchenko is currently offline Roman KishchenkoFriend
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
Previous Topic:how to identify empty method using aspectj
Next Topic:ClassFormatError
Goto Forum:
  


Current Time: Sat Apr 27 01:28:08 GMT 2024

Powered by FUDForum. Page generated in 0.03050 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top