Re: xdoclet module with Java 1.5
On 9/1/05, Daniel Perry [EMAIL PROTECTED] wrote: I'm trying to use the OJB xdoclet module (from 1.0.3 download) with java 5 generics. The following: ArrayList Integergeneric = new ArrayListInteger(); gives an error: [ojbdoclet] Error parsing File C:\java\pol\src\java\Test.java:Encountered at line 11, column 27. [ojbdoclet] Was expecting one of: Is there a 1.5 compatible version? This is an problem of XDoclet itself. Basically you need a new XJavadoc jar (1.5, which you can get from here: http://sourceforge.net/projects/xdoclet/). Also, can I use generics for collections in OJB classes? Well, yes, sort-of. You still need to define the element-class-ref (XDoclet does not use the generics information), but since the generics are lost in the bytecode (compiled to normal classes and casts), they will work. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xdoclet module with Java 1.5
It is an issue with the xjavadoc module. You need to update that library to one of the snapshots that has the generics parsing support. I can email the file I am using, if you want. To answer your second question, ues you can use generics just fine in OJB (due to erasure). Using it here without issue. -Andrew -Original Message- From: Daniel Perry [mailto:[EMAIL PROTECTED] Sent: Thursday, September 01, 2005 10:38 AM To: OJB Users List Subject: xdoclet module with Java 1.5 Hi, I'm trying to use the OJB xdoclet module (from 1.0.3 download) with java 5 generics. The following: ArrayList Integergeneric = new ArrayListInteger(); gives an error: [ojbdoclet] Error parsing File C:\java\pol\src\java\Test.java:Encountered at line 11, column 27. [ojbdoclet] Was expecting one of: Is there a 1.5 compatible version? Also, can I use generics for collections in OJB classes? Thanks, Daniel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xdoclet module with Java 1.5
All working happily now! Note to others: andrew sent me his new Xdoclet files, and it was complaining: java.lang.UnsupportedClassVersionError: xjavadoc/ant/XJavadocTask (Unsupported major.minor version 49.0) So to use these you have to run ant with java_home pointing to jdk1.5! I wish i could ditch 1.4 alltogether! Thanks a lot for your help! Daniel. -Original Message- From: Clute, Andrew [mailto:[EMAIL PROTECTED] Sent: 01 September 2005 16:01 To: OJB Users List Subject: RE: xdoclet module with Java 1.5 It is an issue with the xjavadoc module. You need to update that library to one of the snapshots that has the generics parsing support. I can email the file I am using, if you want. To answer your second question, ues you can use generics just fine in OJB (due to erasure). Using it here without issue. -Andrew -Original Message- From: Daniel Perry [mailto:[EMAIL PROTECTED] Sent: Thursday, September 01, 2005 10:38 AM To: OJB Users List Subject: xdoclet module with Java 1.5 Hi, I'm trying to use the OJB xdoclet module (from 1.0.3 download) with java 5 generics. The following: ArrayList Integergeneric = new ArrayListInteger(); gives an error: [ojbdoclet] Error parsing File C:\java\pol\src\java\Test.java:Encountered at line 11, column 27. [ojbdoclet] Was expecting one of: Is there a 1.5 compatible version? Also, can I use generics for collections in OJB classes? Thanks, Daniel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]