Hello,

I ran into a peculiar problem today regarding which I suspect has
something to do with the object cache.

To exemplify suppose we have the following classes:

   -----        1 -----        1 -----
   | A | -------- | B | -------- | C |
   -----          -----          -----

Class A has a reference to class B, which in turn has a reference to
class C. Part of class A's equals function is class B. Part of class B's
equals function is class C. Currently all instances of class A reference
the same instance of class B.

At some point in time, an instance A1 of class A is introduced into the
object cache. Many other instances of class A are also present in the
cache. At a later point in time an access is made to the equals function
of B1 derived from an access to the equals function of A1 resulting in a
NullPointerException.

After restarting the application attempts to access the instance A1
produced no errors.

Has anyone experienced any similar problems? Any help is greatly
appreciated.

Thanks,
Luis Cruz



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to