Lowell Kirsh wrote:
> By the way, I forgot to mention that this is using jaxb2.
>
> On 10/5/06, *Lowell Kirsh* <lowellk_at_gmail.com
> <mailto:lowellk_at_gmail.com>> wrote:
>
> Not that this helps, but I have had similar problems. I have a type
> defined in my schema:
>
> <xs:complexType name="numericList">
> <xs:choice maxOccurs="unbounded">
> <xs:element ref="number" />
> <xs:element ref="numberRange"/>
> </xs:choice>
> </xs:complexType>
>
> The java code that it produces is sometimes
> getNumbersAndNumberRanges() and other times it generates
> getNumberRangesAndNumbers(). This is without changing the schema at
> all.
>
> If anyone knows how to fix this, please let me know.
Really? That sounds like a serious bug, as the latter is actual
violating the spec. We generally pay a lot of attention to those things.
A test case would be really great.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com