Developers,

I've been having a lot of troubles with marshalling/unmarshalling dates in schemas with namespaces. Full details were described in bug #1132.

Because this is such a show stopper, I've gone through and found what I think is the problem - only primitive typed elements may inherit the namespace from its parent object.

To that end, I've written a patch (included in the above bug report) to the isPrimitive() method of org/exolab/castor/xml/util/ XMLFieldDescriptorImpl.java that will return true for Date objects as well as String, Boolean, Numeric, etc.

As I mention in the bug report, I have not tested this against JDO (I'm only using XML), so I don't know if this will adversely effect JDO. I trust the developers run regression tests before committing.

I've noticed that a lot of people on the forums write their own date handlers. This may be the root cause of the problem for some of those people.

I hope this helps.

--
Michael Westbay



Reply via email to