You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ja...@ws.apache.org on 2004/10/12 10:33:51 UTC

[jira] Closed: (JAXME-40) Multiple xsd:group's inside xsd:choce, java generator error

Message:

   The following issue has been closed.

   Resolver: Jochen Wiedmann
       Date: Tue, 12 Oct 2004 1:32 AM

Duplicate of JAXME-28

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAXME-40

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAXME-40
    Summary: Multiple xsd:group's inside xsd:choce, java generator error
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: DUPLICATE

    Project: JaxMe
 Components: 
             JaxMe Core

   Assignee: 
   Reporter: Marcin Kuthan

    Created: Tue, 12 Oct 2004 1:18 AM
    Updated: Tue, 12 Oct 2004 1:32 AM
Environment: JaxMe 0.3.1

Description:
When I try to compile schema I get error:

The class test.impl.PurchaseOrderTypeImpl already has a field BillTo.

JAXB RI compile schema correctly. I think that this is a bug in JaxMe. 

Problematic schema:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
            jxb:version="1.0">

<xsd:complexType name="PurchaseOrderType">
    <xsd:choice>
        <xsd:group ref="shipAndBill"/>
        <xsd:group ref="billAndShip"/>
    </xsd:choice>
</xsd:complexType>

<xsd:group name="shipAndBill">
    <xsd:sequence>
        <xsd:element name="shipTo" type="xsd:string"/>
        <xsd:element name="billTo" type="xsd:string"/>
    </xsd:sequence>
</xsd:group>

<xsd:group name="billAndShip">
    <xsd:sequence>
        <xsd:element name="billTo" type="xsd:string"/>
        <xsd:element name="shipTo" type="xsd:string"/>
    </xsd:sequence>
</xsd:group>

</xsd:schema>


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org