Hi Nick,
reading this in London .. ;-), it looks to me that you might have discoverd a
bug. As I don't have access to my normal working environment right now, I can
only guess that this might be related to the way dependent objects are (not)
handled (properly). I'll definitely get back to you once I am back home ...
Werner
-----Ursprüngliche Nachricht-----
Von: Nick Stuart [mailto:[EMAIL PROTECTED]
Gesendet: Mi 10.08.2005 19:46
An: [email protected]
Cc:
Betreff: Re: [castor-dev] NPE with extended classes.
Ok, got it to fail using a very simply test case. Attached the patch
to the current test case as well as the extra object I created. If you
run it you should get the following exception:
org.exolab.castor.jdo.PersistenceException: Requested to load/fetch an
object of type jdo.test1158.ExtendedObject, where persistent storage
returned an object of type class jdo.test1158.BaseObject
The problem is that it sees the parent of DependentObj as being loaded
because BaseObject is loaded. And when it goes to try and load the
ExtendedObject it just gets all confused. Not sure what the design for
this is, but it looks like you are loading BaseObject seperatly first,
then, if you find an extended object if you find a class that extends
BaseObject with the same ID and replacing it? Not sure one this one.
-Nick
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------