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 <Integer>generic = new ArrayList<Integer>(); > > > > 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]
