Hi
when i try to store or retrieve array of object i get this exception (rc5)
java.lang.ClassCastException
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.storeCollections(PersistenceBrokerImpl.java)
i have change the code and it seems to work but is it correct to do that :
in PersistenceBrokerImpl i put this code (line 807) (in store collection method)
......
// MBAIRD
// if the collection is a collectionproxy and it's not already loaded
// no need to store it.
if (col instanceof CollectionProxy && !((CollectionProxy) col).isLoaded())
{
continue;
}
//RBA
if (!(col instanceof Collection))
col = java.util.Arrays.asList((Object[])col);
//RBA if col is not an array i ll get the same exception else it works :)
......
thank
Remi