Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Is this a bug or my pointcut problem?

George just replied there to Wes, to answer your question:

[1] Remove target; same result

[2] The other class thats being picked up has NO relationship to (com.naryx.tagfusion.cfm.tag.cfTag) except it happens to share a method signature.

Thanks George,

A

George Harley1 wrote:


Hi Alan,

What do you see if you remove the target part of your pointcut so that your aspect looks like this ...

public aspect AspectDebug {

pointcut tagExecute() :
    call (void com.naryx.tagfusion.cfm.tag.cfTag.render(..));
before() : tagExecute(){
 System.out.println( "tagExecute:" + thisJoinPoint.getThis() );
}
}

Also, when you say that your current aspect picks up other classes with the same render() signature but in other packages, are those classes related to com.naryx.tagfusion.cfm.tag.cfTag ?



Back to the top