users@jaxb.java.net

Re: Typesafe enum - size limit?

From: ofira shaer <oshaer_at_gmail.com>
Date: Tue, 3 Nov 2009 17:42:25 +0200

Hi.

It seems that it has nothing to do with typesafe enum, but I have a problem
with enum's generally.
Please see the attached file

If I add "field_257", the java code is not created. If "Fields" ends
with "field_256", the code is created.

The command line I use is:

xjc.bat -verbose -cp
.;defaultvalueplugin.jar;jaxb-2.0-xjc-value-constructor-plugin.jar
-Xinject-code -Xdefault-value -d C:\mydir testOfSchema.xsd

What am I missing here?

Thanks.


2009/11/1, Wolfgang Laun <wolfgang.laun_at_gmail.com>:

> xjc version "JAXB 2.1.10" compiles > 256 <xs:enumeration> without
> complaining.
>
> What's your Schema code?
>
> -W
>
>
>
> On Sun, Nov 1, 2009 at 4:54 PM, ofira shaer <oshaer_at_gmail.com> wrote:
>
>> Hi.
>>
>> I have defined a type safe enum of 255 members. When I add the 256's
>> member, jaxb refuses to create the java code.
>> Is there any limit on the enum size?
>>
>> Thanks.
>> Ofira.
>>
>
>