On Mon, 2005-04-25 at 14:15, Michael Gale wrote: > Dear XDoclet'ers, > > I'm a little new to XDoclet, so please excuse me if I'm asking a silly > question here: > When I build my project, I get the following errors: > > Error parsing File /some/path/somefile.java:Encountered "{" at line > 17, column 31. > Was expecting one of: > "[" ... > ";" ... > "," ... > "=" ... > "(" ... > > The offending line looks like > > public static enum Status {DEAD, LOST, PIPELINE, MANDATED, EXECUTED}; > > I get the same error for a similar enum in a different file. I'm > building using Maven and the XDoclet 1.2 plugin, and as near as I can > tell, this error gets generated by the jdodoclet module. Does XDoclet > actually support the new syntax introduced in Java 5?
No. > I found the following bug, which I believe may be related: > http://opensource.atlassian.com/projects/xdoclet/browse/XJD-48?page=all Not really; that one just meant that xjavadoc wouldn't build under JDK 1.5/5.0 Your problem is that the javacc grammar (that the parser is generated from) doesn't cater for the enum keyword. XJD-41 is the relevant issue. Andrew. > In the meantime, I don't *have* to use enums, but it would be nice, so > if anyone knows a fix/workaround, I'll be very much obliged. > > Kind regards, > Misha Gale -- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user