[OJB-developers] Extent aware cache
Brought to you by:
thma
From: Michal K. <mkl...@ya...> - 2001-10-09 07:13:51
|
Hi, I just found a serious bug in my application and it looks like the problem lays in ObjectCacheDefaultImpl. Situation looks like this: interface A { ... } class AImpl implements A { ... } class B { A aReference; } class C { AImpl aImplReference; //points to the same instance as B.aReference } After reading objects B and C should be: B.aReference == C.aImplReference. But it is not!!! The problem is that cache is not aware of extents so: cache(B.aReference) puts <"A{x}", B.aReference> into the hashtable and lookup(C.aImplReference) looks for "AImpl{x}" and returns null. Regards, Michal _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |