[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Newbie -- Syntax error with field get/set pointcut

Thanks for your help! The problem turned out to be in the advice code (which
I didn't include in the original post). Here is the gist of it:

	pointcut getMessage() : get(String HelloWorld.message);

	before : getMessage() {
		System.out.println("GET POINTCUT: RUNNING ADVICE BEFORE " +
thisJoinPoint);
	}

I forgot the parentheses after "before" (should be "before()"). Sorry, my
bad... :(


Ramnivas Laddad wrote:
> 
> Change your set pointcut to:
> 
> pointcut setMessage(String m) : set(String HelloWorld.message) && args(m);
> 
> -Ramnivas
> 

-- 
View this message in context: http://www.nabble.com/Newbie----Syntax-error-with-field-get-set-pointcut-tp16898496p16907936.html
Sent from the AspectJ - users mailing list archive at Nabble.com.