Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ajdt-dev] Parameter Annotations in Pointcuts

Hi,

I really enjoy the pointcut matching based on parameter annotations. 
Great work!

I wonder why the pointcut in the following advice won't match:

before() : execution(* test(.., @Try (*), ..)) {
    System.err.println("ParamAnno aspect was here!");
}

Whereas the following will match:

before() : execution(* test(@Try (*), ..)) {
    System.err.println("ParamAnno aspect was here!");
}

The method that should be affected by the above advices is:

public void test(@Try String s, String s2) {
    // Do nothing!
}

Is this a bug or a feature :-)

Heiko


Back to the top