You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/11/05 16:22:24 UTC
DO NOT REPLY [Bug 37369] New: -
[betwixt] Mapping error when reading invalid XML in the presence of polymorphic collections
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37369>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37369
Summary: [betwixt] Mapping error when reading invalid XML in the
presence of polymorphic collections
Product: Commons
Version: unspecified
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Betwixt
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: tomdz@apache.org
Given a model like this (written in concise Java5-sort-of notation):
class Container
elements : List<Element>
class Element
subElements :List<SubElement>
interface SubElement
class SubElementA : SubElement
class SubElementB : SubElement
the following invalid XML snippet
<container>
<subElementB/>
</container>
does not only fail to produce an error (because XML is not validated by the
parser), but actually creates an Element instance which is put into the elements
collection in Container.
The attached test case TestCollectionMapping2 shows this problem.
Additionally, the attached existing betwixt test cases TestCollectionMapping and
TestMultipleCollectionMappings have been enhanced with similar but slightly
different scenarios where the error does not occur.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org