commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [betwixt] strange behaviour with multimapping
Date Mon, 07 Nov 2005 22:29:48 GMT
On Sat, 2005-11-05 at 16:26 +0100, Thomas Dudziak wrote:
> Hi,
> 
> I've created a bug report for it that contains a test case for it:
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=37369
> 
> I think it has something to do with the fact that in (in the test
> case) the collection of class Element uses SubElement (for the updater
> method) which however is not contained in the mapping (only its
> subtypes are). This seems to confuse betwixt when reading the invalid
> XML.

+1

it's the two stages of polymorphism which are confusing the engine. a
BeanBindAction is used for the mapping to allow a later potential
polymorphic match. however, no check is made that the name is
appropriate.

betwixt needs to check that there is a polymorphic match either before
assigning the mapping action or upon instance creation. i need a little
time to think upon the right approach so i'll leave the fix till
tomorrow... 

- robert


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message