Re: [OJB-developers] bug in CollectionProxy
Brought to you by:
thma
From: Jakob B. <jbr...@ho...> - 2002-04-29 18:27:51
|
hi georg, this is a pre-factory relict ! the bug is now corrected in cvs. jakob ----- Original Message ----- From: "Georg Schneider" <ge...@me...> To: "Mahler Thomas" <tho...@it...>; <obj...@li...> Sent: Monday, April 29, 2002 6:51 PM Subject: [OJB-developers] bug in CollectionProxy > Hi Thomas, > > CollectionProxy takes in a PersistenceBroker when being constructed, which > isn't actually necessary, because a new one is requested from the factory > if the field is null. The problem is that in PersistenceBrokerImpl the > this-pointer is handed over at construction time: > > if (lazy) > return new CollectionProxy(collectionClass, this, query); > > which means that one Broker-Instance is now available at different places > and screws up things badly. > > Since it isn't necessary (see above) I just commented out the following > line in the CollectionProxy-Constructor: > > public CollectionProxy(Class aCollClass, PersistenceBroker > aBroker, Query aQuery) > > { > setCollectionClass(aCollClass); > //setBroker(aBroker); > setQuery(aQuery); > calculateSize(); > } > > > Cheers > > Georg > > > _______________________________________________ > Objectbridge-developers mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-developers > |