On Jul 23, 2005, at 4:17 PM, Adrian Wiesmann wrote:
> I look forward to this, thanks. May I add then some thoughts to the
> XMLDecoder as well?
Sure thing. This is a huge part of putting this out in 1.2 M5.
> - Having a property/field in a CayenneDataObject which is null
> results in
> a crash within the XMLEncoder. Don't know if this is intended
> (probably
> not).
This is a bug. Apparently my unit tests weren't complete. I'll add
a new one and fix this. Thanks. FYI, you can report things like
this against CAY-261.
> - Since I am writing multiple Lists into one single XML, there is
> no easy
> method with the current XMLDecoder to read that back. While I have
> noticed
> some private functions accepting Nodes (decodeCollection,
> decodeElement),
> there is no public function for that. Currently the XMLDecoder only
> accepts a Reader. Which is a little bit of a problem when trying to
> decode
> a single Node only :)
The reason for this was so that the public API does not rely on
JDOM. If you can suggest a better way to handle this, I'm open to
suggestions. The use of JDOM right now should be considered an
implementation detail however.
> I'd be willing to help out with testing/implementing some new
> version but
> guess we then better move to private emails...
Great. I look forward to the feedback :-)
-- Kevin
This archive was generated by hypermail 2.0.0 : Sat Jul 23 2005 - 22:02:24 EDT