commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37369] New: - [betwixt] Mapping error when reading invalid XML in the presence of polymorphic collections
Date Sat, 05 Nov 2005 15:22:24 GMT
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


Mime
View raw message