Details
-
Type:
Bug
-
Status:
Open
-
Priority:
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 :
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.