Bug 291550 - Parsing Javadoc with incorrect warning
Summary: Parsing Javadoc with incorrect warning
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-06 22:55 EDT by Andrew Eisenberg CLA
Modified: 2009-10-06 22:55 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Eisenberg CLA 2009-10-06 22:55:09 EDT
See bug 290624.  From the description of the bug:

------------------
I had activated the "Missing Javadoc tags" in the preferences (Java > Compiler

	> Javadoc). I get warning about the missing javadoc in the following advice:

public aspect SopAspect extends AbstractSopAspect {

/**
* Look at the whole code to detect System.out violation
* (except main methods)
*/
public pointcut applicationCode() :
within(..)
&& !withincode(
/** e.g. for the hello-world example System.out is ok */
public static void ...main(String[]))
;

/**
* You can suppress the System.out warning by the annotation
* <code>@SuppressSystemOutWarning</code>.
*/
public pointcut allowedCode() :
@within(SuppressSystemOutWarning)
|| @withincode(SuppressSystemOutWarning)
;

}

I get a Javadoc warning ("Missing comment for public declaration") in the
second pointcut. The problem seems to be the joinput "within(public static void
main ...)". 

------------------

The problem appears to be coming from the parser which is considering 'public static void main...' a method declaration.