[ http://jira.codehaus.org/browse/QDOX-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234030#action_234030 ]
P Boon commented on QDOX-218: ----------------------------- Exception in thread "main" com.thoughtworks.qdox.parser.ParseException: Illegal escape character 'd' @[1,50] in UNKNOWN SOURCE at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:1018) at com.thoughtworks.qdox.parser.impl.Parser.convertString(Parser.java:1126) at com.thoughtworks.qdox.parser.impl.Parser.toString(Parser.java:1233) at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1800) at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:999) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:353) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:343) at QDoxIllegalEscapeCharacter.main(QDoxIllegalEscapeCharacter.java:10) > Illegal escape character > ------------------------ > > Key: QDOX-218 > URL: http://jira.codehaus.org/browse/QDOX-218 > Project: QDox > Issue Type: Bug > Components: Parser > Affects Versions: 1.12 > Reporter: P Boon > Attachments: QDoxIllegalEscapeCharacter.java > > > It seems like String arguments to annotations containing escaped backslashes > fail. > @Annotation("This could be a regex \\d") > public void testTemplate() throws Exception { > JavaDocBuilder builder = new JavaDocBuilder(); > String source = "public class Foo { @SuppressWarnings({\"a\", > \"abc\\d\"})\nprivate void bar() { } }"; > builder.addSource( new StringReader(source) ); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email