Bug 338156 - @SuppressAjWarnings({"adviceDidNotMatch"}) does not work together with "percflow"
Summary: @SuppressAjWarnings({"adviceDidNotMatch"}) does not work together with "percf...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 16:16 EST by Oliver CLA
Modified: 2011-02-24 16:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver CLA 2011-02-24 16:16:27 EST
Build Identifier: 20100917-0705

To suppress "advice did not match" warnings I used the SuppressAjWarnings
annotation in front of the advice:

    @SuppressAjWarnings({"adviceDidNotMatch"})
    Object around(RunParallel t) : parallelMethods() && @annotation(t) {
        ...
    }

That's ok. But when I declare the aspect with "percflow" like

    public aspect RunParallelAspect percflow(parallelMethods()) {
        ...
    }

the warning will be not suppressed

Reproducible: Always

Steps to Reproduce:
1. Write an aspect with one advice that do not match any code
2. You should see a warning "advice ... has not been applied [Xlint:adviceDidNotMatch]"
3. add @SuppressAjWarnings({"adviceDidNotMatch"}) before the advice (the warning should disappear)
4. add a percflow statement to the aspect definition (the warning appears again)