users@jaxb.java.net

Re: Java 5 enum vs type-safe enum

From: Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>
Date: Sun, 29 Jan 2006 11:32:01 -0800

Hanson Char wrote:
> Hi Kohsuke,
>
>> What I had in my mind was for you to replace "FieldRendererFactory" to
>> completely take over the field generation process. We can refactor the
>> current field generators so that you can extend them and tweak them so
>> that they return the right type.
>
> Is XJC anytime soon going to generate true Java 5 Enum, instead of
> using the type safe enum pattern ? Any major hurdle ? I imagine the
> generated classes will be so much simpler.

It does generate the Java5 enums already, like, for the past year or so.
Are you sure you are looking at the JAXB RI 2.0? Did you check out from
"jaxb2-sources", instead of "jaxb-sources"?


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com