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? I found the following bug, which I believe may be related: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-48?page=all

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

Reply via email to