jon gold wrote:
> i recently made a typo in a schema and accidentally set both minOccurs
> and maxOccurs equal to 0 for an element in a sequence of a complexType,
> let's say:
>
> <complexType name="FooType">
> <sequence>
> <element name="x" type="string"/>
> <element name="y" type="string"
> minOccurs="0" maxOccurs="0"/>
> </...
> </...
>
> and got an empty interface for FooType -- ie, no methods getX or setX,
> even though they were defined to exist. is this a feature of schemas or
> of xjc, or is it a bug?
That sounds like a bug to me. It should at least generate a property for
X. I just tried and this seems to work with 2.0, so I guess it will be
fixed in 2.0.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com