Menu

#456 Bad parsing with email addresses in JavaDoc

1.5b5
closed-fixed
S
None
5
2005-12-19
2005-11-29
No

My code convention defines JavaDoc class header like this:

/**
* The <code>$fileName$</code> class allow...
*
* @author $author$
* @version $Revision$, $Date$
* <br>Copyright © $year$, $organization$ All rights reserved.
*/

It also defines environment constants like these:

author=Francis Labrie &lt;francis.labrie@smoguli.com&gt;
organization=Les Production Smoguli, enr.
year=2005

But when I invoque my Jalopy Ant target, I get error like this when
email address already exists in JavaDoc:

Buildfile: build.xml

format:
[jalopy] Jalopy Java Source Code Formatter 1.0.0
[jalopy] Could not find the Java runtime library (rt.jar), import
optimization feature will be disabled.
[jalopy] Format 2 source files
[jalopy] /path/Source.java:4:53: Invalid Javadoc tag "@smoguli" found

BUILD FAILED
/path/build.xml:118: Error formatting file

Total time: 4 seconds

Jalopy seems to think the email "@smoguli" substring is a JavaDoc tag
and returns errors. I get the same error if I replace the author constant
value with an hyperlink:

author=<a href="mailto:francis.labrie@smoguli.com">Francis Labrie</
a>

Discussion

  • S

    S - 2005-12-06

    Logged In: YES
    user_id=723231

    Thats correct, it is now fixed though...

     
  • S

    S - 2005-12-06
    • milestone: --> 1.5b5
    • assigned_to: nobody --> notzippy
    • status: open --> pending-fixed
     
  • S

    S - 2005-12-19
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.