db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join
in Search
More Search Options

Browse by Tags

All Tags » Java 5 » generics   (RSS)
  • Re: "Invalid predicate" with generics issue

    I think I had a similar problem. And I believe it has to do with how Generics work in Java: The Generic method match(T) is not compiled into an actual method match(ActualClass) for a specific ActualClass. Generics can only do type checking at compile time! At Runtime, the method will not know about the actual class anymore: it will basically be ...
    Posted to db4o User Forum (Forum) by Peter Schübel on September 10, 2008
  • Attribute not stored when using a generic type

    I have a class with a generic attribute public class SimplePerson<V extends Comparable> implements Serializable, SimplePersonIf {   private static final long serialVersionUID = 1L;   private String name; private List<SimplePersonIf> friends; private V value; When I store an object, the attribute ''value'' is not ...
    Posted to db4o User Forum (Forum) by pfouquet on June 29, 2007