Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.codehaus.org/secure/ViewIssue.jspa?key=JIBX-16 Here is an overview of the issue: --------------------------------------------------------------------- Key: JIBX-16 Summary: "structure ... using..." mistakenly throws Exception with wrong datatype Type: Bug Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: JiBX Components: core Versions: 1.0-beta3b Assignee: Reporter: Linus Kamb Created: Mon, 3 May 2004 12:12 PM Updated: Mon, 3 May 2004 12:12 PM Environment: Solaris 9, Java 1.4.2_03-b02 Description: This works in Beta3a: <binding> <mapping name="DbObject" class="edu.iris.dmc.db.DbObject" abstract="true" > <structure name="DbInfo" label="dbFields" value-style="attribute" > <value name="enteredOn" field="enteredOn" /> <value name="enteredBy" field="enteredBy" /> <value name="modifiedOn" field="modifiedOn" /> <value name="modifiedBy" field="modifiedBy" usage="optional" /> </structure> </mapping> <mapping name="Station" class="edu.iris.dmc.isis.Station" value-style="attribute" > <value name="siteName" field="siteName" /> <value name="stationCode" field="code" /> [stuff cut out for brevity] <structure name="DbInfo" using="dbFields" /> </mapping> </binding> But in Beta3b, I get the following bind-time exception: [bind] org.jibx.runtime.JiBXException: Reference to structure dbFields has object of type edu.iris.dmc.isis.Station rather than required java.util.Date [bind] at org.jibx.binding.def.StructureReference.setLinkages(StructureReference.java:120) [bind] at org.jibx.binding.def.ElementWrapper.setLinkages(ElementWrapper.java:443) [bind] at org.jibx.binding.def.NestedStructure.setLinkages(NestedStructure.java:236) [bind] at org.jibx.binding.def.PassThroughComponent.setLinkages(PassThroughComponent.java:140) [bind] at org.jibx.binding.def.ObjectBinding.setLinkages(ObjectBinding.java:752) [bind] at org.jibx.binding.def.ElementWrapper.setLinkages(ElementWrapper.java:443) [bind] at org.jibx.binding.def.MappingDefinition.setLinkages(MappingDefinition.java:678) [bind] at org.jibx.binding.def.DefinitionContext.setLinkages(DefinitionContext.java:624) [bind] at org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:524) [bind] at org.jibx.binding.Compile.compile(Compile.java:283) [bind] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:238) [I admit that this is problably not the best way to do this particular mapping, but the issue remains...] --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ jibx-devs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-devs
