I think the easiest thing we can do is to use the wrapper only when the
default value is indeed specified.
> Another solution which would have the desired properties described
> above is to let JAXB auto generate a subclass (during schema
> compilation) of the desired list implementation class.
Your idea is interesting, but I have a question. How do XJC know which
are mutation methods on your custom class?
Like if I do:
class MyList extends ArrayList {
void mySuperMutationMethod() {
...
}
}
How does XJC know that mySuperMutationMethod needs interception?
I understand your frustration, though. Like I wrote, I don't like the
behavior either.
regards,
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net