Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Why do advice-precedence warnings not go away?
Why do advice-precedence warnings not go away? [message #67159] Fri, 06 October 2006 13:39 Go to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
I have two aspects, both of which declare additional fields one some
types and hence I also advised the toString() method to emit these
additional fields (for easier debugging).

But now I keep getting about a dozen of warning messages like:

"at this shadow method-execution(<class> <class>.<method>(<paramTypes>))
no precedence is specified between advice applying from aspect <aspect1>
and aspect <aspect2> [Xlint:unorderedAdviceAtShadow] <project> line 113
1160141369265 9464183"

even though first to one and then even to BOTH aspects I added:
-----------------
public aspect <aspectN> {
declared precedence: <aspect1>, <aspect2>;
...
}
-----------------

Why does this not rectify the problem? Why do I still get these
warnings???

Michael
Re: Why do advice-precedence warnings not go away? [message #67178 is a reply to message #67159] Fri, 06 October 2006 16:36 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
sounds like an incremental compilation bug. And I thought that xlint
option was off by default, I presume you have turned it on?

Andy.

Michael Moser wrote:
> I have two aspects, both of which declare additional fields one some
> types and hence I also advised the toString() method to emit these
> additional fields (for easier debugging).
>
> But now I keep getting about a dozen of warning messages like:
>
> "at this shadow method-execution(<class> <class>.<method>(<paramTypes>))
> no precedence is specified between advice applying from aspect <aspect1>
> and aspect <aspect2> [Xlint:unorderedAdviceAtShadow] <project> line 113
> 1160141369265 9464183"
>
> even though first to one and then even to BOTH aspects I added:
> -----------------
> public aspect <aspectN> {
> declared precedence: <aspect1>, <aspect2>;
> ...
> }
> -----------------
>
> Why does this not rectify the problem? Why do I still get these warnings???
>
> Michael
>
Re: Why do advice-precedence warnings not go away? [message #594954 is a reply to message #67159] Fri, 06 October 2006 16:36 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
sounds like an incremental compilation bug. And I thought that xlint
option was off by default, I presume you have turned it on?

Andy.

Michael Moser wrote:
> I have two aspects, both of which declare additional fields one some
> types and hence I also advised the toString() method to emit these
> additional fields (for easier debugging).
>
> But now I keep getting about a dozen of warning messages like:
>
> "at this shadow method-execution(<class> <class>.<method>(<paramTypes>))
> no precedence is specified between advice applying from aspect <aspect1>
> and aspect <aspect2> [Xlint:unorderedAdviceAtShadow] <project> line 113
> 1160141369265 9464183"
>
> even though first to one and then even to BOTH aspects I added:
> -----------------
> public aspect <aspectN> {
> declared precedence: <aspect1>, <aspect2>;
> ...
> }
> -----------------
>
> Why does this not rectify the problem? Why do I still get these warnings???
>
> Michael
>
Previous Topic:How I can weave an aspect inside a .jar from eclipse
Next Topic:How I can run a web project with aspectj capabilities
Goto Forum:
  


Current Time: Tue Mar 19 09:22:52 GMT 2024

Powered by FUDForum. Page generated in 0.03377 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top