[XDoclet-JIRA] Updated: (XJD-64) Unable to parse Java files with JDK5 anotated elements (@SuppressWarnings)

"digifork (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
     [ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=all ]

digifork updated XJD-64:
------------------------

    Attachment: ann_error.tar.gz

I have attached a small project which will cause the error. The lib directory contains the latest public release of xdoclet and the lastest xjavadoc-1.5-snapshot.jar file built from CVS this morning. The following is the output on my machine using the included build file:

> ant
Buildfile: build.xml

compile:
    [javac] Compiling 1 source file to /home/djshinto/dev/repo

generate:
[webdoclet] (XDocletMain.start                   47  ) Running <deploymentdescriptor/>
[webdoclet] Generating web.xml.
[webdoclet] Error parsing File /home/djshinto/dev/repo/AnnError.java:Parse error at line 3, column 9.  Encountered: @
[springdoclet] (XDocletMain.start                   47  ) Running <springxml/>
[springdoclet] Generating spring.xml.
[springdoclet] Error parsing File /home/djshinto/dev/repo/AnnError.java:Parse error at line 3, column 9.  Encountered: @

BUILD SUCCESSFUL
Total time: 12 seconds



> Unable to parse Java files with JDK5 anotated elements (@SuppressWarnings)
> --------------------------------------------------------------------------
>
>          Key: XJD-64
>          URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
>      Project: XJavaDoc
>         Type: Bug
>   Components: Parser
>     Reporter: Darryl Miles
>     Assignee: xdoclet-devel (Use for new issues)
>  Attachments: ann_error.tar.gz
>
>
> Java5 supports a feature in the language called "Java Annotations".
> XDoclet should accept them and ignore without throwing out the file as an error.
> An example annotation:
> @SuppressWarnings("serial")
> Possibly Helpful Supporting Specification Documents:
> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.