Details
Description
We get ParseException as follows when we try to parse a java file that contains /***/ as comment or javadoc for any method.
com.thoughtworks.qdox.parser.ParseException: syntax error @[10,1] in UNKNOWN SOURCE
at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:716)
at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:826)
at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:697)
at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:300)
at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:290)
Question: When java compiler ignores it and compiles it, why should that be not ignored?
Activity
Robert Scholte
made changes -
Field | Original Value | New Value |
---|---|---|
Resolution | Won't Fix [ 2 ] | |
Fix Version/s | 1.11 [ 16104 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Why not upgrade to 1.10.1? QDox-1.6.3 was released in june 2007, this most recent is dated december 2009. Especially 1.10 has an improved implementation of handling javadoc comments.
Please read http://qdox.codehaus.org/upgrade.html for the details how to upgrade your code.
Small answer to your question: QDox parses the sourcecode, meaning it first has to recognize the /** as javadoc before knowing how to handle this codefragment.
I've closed this issue as Won't Fix. First upgrade to the most recent version. If the issue is still there, just reopen this one.