users@jaxb.java.net

RE: ClassCastException at com.sun.xml.xsom.impl.parser.state.complexType

From: Ian Poccachard <ipocca_at_blueyonder.co.uk>
Date: Thu, 19 Feb 2004 10:03:26 -0800

>We can't help you unless you give us a test case that reproduces the
problem.
>It would also help if you could tell us which version of the binding
compiler
>you are using.

OK apologies, Stupid post on my part. Culprit was an empty <xsd:sequence>
that was not picked up by my validator (and especially me) - see below.

Do you reckon though that the xjc should deal with this empty element
better? If so I'll add an enhancement request on the bug tracker.

    <xsd:complexType name="DurationType" >
        <xsd:complexContent>
            <xsd:extension base="cct:MeasureType">
                <xsd:sequence>

                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

Cheers guys.

Ian





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net