Issue Type: Bug Bug
Affects Versions: 1.5
Assignee: Unassigned
Created: 20/Feb/13 4:01 PM
Description:

If my root element uses an anonymous complex type, the generated Java class is correctly annotated with XmlRootElement. If it's a custom type defined in the same schema then the class doesn't have the XmlRootElement annotation.

anonymous complex type

<xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="Environments">
	    <xsd:complexType>
	    	<xsd:sequence>
	    		<xsd:element name="Credentials" type="xsd:string">	</xsd:element>
	    	</xsd:sequence>
	    </xsd:complexType>
    </xsd:element>
</xsd:schema>

named complex type

<xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <xsd:complexType name="Environments">
        <xsd:sequence>
            <xsd:element name="Credentials" type="xsd:string">	</xsd:element>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="Environments" type="Environments">
    </xsd:element>
</xsd:schema>
Project: JAXB-2 Maven Plugin
Priority: Major Major
Reporter: Carlin Scott
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to