[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- From: Paul Bergin <Paul.Bergin@xxxxxx>
- Date: Fri, 08 Jun 2007 10:01:21 +0100
- Delivered-to: aspectj-users@eclipse.org
- Thread-index: Acepq5WYiSjQ6h7QRoOMia8l5161rQ==
- Thread-topic: 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