This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Db4o and Generics

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys :

Im playing aroudn with db4o. They say that it supports
generics - is this true ?

I tried and it didnt compile.

Any ideas ?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And you are compiling with Java 5.0 right?

Mark
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yup...My code is full of generics, its only db4o which
doesnt seem to have a generic API. Any ideas ? Code snippets ?
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also - my version of Db4o is 5.5
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay I fixed it - the Db4o comes bundled with
java 1.1, java 1.2, and 1.5 jars. I had all 3 in a library and was accessing the 1.2 jar which doesnt support generics.

Any body with the same problem - just make sure you use the 1.5 jar and not an earlier version and youll be fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic