Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » AspectJ advices always yield a warning
AspectJ advices always yield a warning [message #581612] Sat, 17 July 2004 16:38
Michael Moser is currently offline Michael Moser
Messages: 914
Registered: July 2009
Senior Member
The new AJDT 1.1.11 seems to be working VERY nicely (at least as far
as I was able to test and play with it by now).

I only noticed one minor annoyance: I have enabled warnigs for missing
or erroneous javadoc comments in Eclipse and for some strange reason
each advice produces such a warning:

e.g. the advice
-------------------------------------
after() throwing(Throwable t):
loggedMethods() // to be defined by specialized aspects
&& !execution(* *.toString(..)) // to avoid recursion
since we are using this ourselves
&& !adviceexecution() // and another thing we don't want
to see...
{
...
}
-------------------------------------
produces a warning "Missing comment for public declaration ...."

I think this is already false in the first place, since IMHO this is
NOT a public declaration, but - even stranger - even if I then DO add
a javadoc comment to the advice, e.g.
-------------------------------------
/**
* advice after throwing an exception
*/

after() throwing(Throwable t):
loggedMethods() // to be defined by specialized aspects
&& !execution(* *.toString(..)) // to avoid recursion
since we are using this ourselves
&& !adviceexecution() // and another thing we don't want
to see...
{
...
}
-------------------------------------
.... I still get the mentioned warning.

Am I missing something? Or can one somehow get rid of these warnings
(I mean without globally disabling these Eclipse warnings of
course...)?

Michael
Previous Topic:AJDT 1.1.11 released for Eclipse 3.0
Next Topic:AspectJ advices always yield a warning
Goto Forum:
  


Current Time: Sun Oct 26 06:02:01 GMT 2014

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

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