[
http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=comments#action_17234
]
Gemig Inteskrap commented on XJD-64:
------------------------------------
I have a similar issue using enums.
My code looks like this:
--------------------------------------------------------------------------------------------------
public class ParseErrorException extends Exception {
public enum Code {
EXAMPLE ("Example text");
String text = "";
Code(String t) {
this.text = t;
}
public String getText() {
return this.text;
}
}
private Code errorCode;
public ParseErrorException(Code ec) {
errorCode = ec;
}
public Code getErrorCode() {
return this.errorCode;
}
public String getMessage() {
return this.errorCode.getText();
}
}
--------------------------------------------------------------------------------------------------
Which generates the following error:
--------------------------------------------------------------------------------------------------
[ejbdoclet] Error parsing File [some long
path]\ParseErrorException.java:Encountered "{" at line 38, column 26.
[ejbdoclet] Was expecting one of:
[ejbdoclet] "[" ...
[ejbdoclet] ";" ...
[ejbdoclet] "," ...
[ejbdoclet] "=" ...
[ejbdoclet] "(" ...
--------------------------------------------------------------------------------------------------
Since I used xdoclet-1.2.1.jar and friends (as provided in Eclipse 3.1) I
realise this report is of limited use.
Sorry.
> 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)
>
>
> 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 the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel