castor
  1. castor
  2. CASTOR-477

Exception with same type collections and location= [TESTCASE]

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 0.9.5
    • Fix Version/s: None
    • Component/s: XML
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC
    • Bugzilla Id:
      1337
    • Number of attachments :
      0

      Description

      I have attached a testcode which demonstrates the problem. The testcase model
      is as follows: A RuleBase has a collection of Rules, and each Rule has a
      collection of AllowHosts and DenyHosts (both of type Host).

      Castor marshalls the objects correctly but throws a SAXException when parsing
      the XML it generated. I think this is due to the fact that both collections are
      the same type, if you comment out the DenyHosts field definition then it works.

      I have tried to fix this but I'm not very familiar with the Castor code.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            dummy002
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: