Running xdoclet-hibernate results in parsing errors due to @Override annotation in java 1.5
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mark_cl
Posted On:   Thursday, December 28, 2006 12:56 PM

Hi there. I am trying to write an ant task to run xdoclet for hibernate tages. The ant task is below. excludedtags="@version,@author" addedtags="@xdoclet-generated at ${TODAY}" force="${xdoclet.force}"> When I run "ant generate" I get errors like [hibernatedoclet] Error parsing File /home/mark/workspace/RealtorSite0.3/src/main/java/za/co/jumpingbean/model/PropertyLiability.java:Lexical error: xjavadoc.TokenMgrError: Lexical error at line 24, column 9. Encountered: "@" (64), after : "" [hibernatedoclet] Error parsing File /home/mark/   More>>

Hi there.

I am trying to write an ant task to run xdoclet for hibernate tages. The ant task is below.

			








excludedtags="@version,@author" addedtags="@xdoclet-generated at ${TODAY}" force="${xdoclet.force}">












When I run "ant generate" I get errors like
			
[hibernatedoclet] Error parsing File /home/mark/workspace/RealtorSite0.3/src/main/java/za/co/jumpingbean/model/PropertyLiability.java:Lexical error: xjavadoc.TokenMgrError: Lexical error at line 24, column 9. Encountered: "@" (64), after : ""
[hibernatedoclet] Error parsing File /home/mark/workspace/RealtorSite0.3/src/main/java/za/co/jumpingbean/model/PropertySpecsExt.java:Lexical error: xjavadoc.TokenMgrError: Lexical error at line 39, column 9. Encountered: "@" (64), after : ""

These line numbers all refer to lines with the @Override attribute set on the method. I have checked and the jvm running is version 1.5 so it should be able to parse the files fine. Any ideas? thanks Mark    <<Less
About | Sitemap | Contact