Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] PointCut

Hi
I have a method (booleanCheck) which returns a boolean value, if the
value returns true I want the aspect to run. Here is my pointcut
definition

	public pointcut methodOne(String val1,String val2,String val3) :

		  call(public String
MyObject.methodOne(String,String,String)
		  && args(val1,
				  val2, 
				  val3)
		  && call (boolean booleanCheck());

If I remove the final call to booleanCheck the aspect fires correctly,
but when I add the check and it doesn't fire if it returns true of
false.
What am I doing wrong?

Cheers
P


Back to the top