• Post Reply Bookmark Topic Watch Topic
  • New Topic

Db4o and Generics  RSS feed

 
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: 17309
11
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
Boost this thread!