users@jaxb.java.net

Re: Q: Does JAXB handle elements with minOccurs="0" correctly?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 19 Nov 2004 13:55:05 -0800

Jacob Lauemøller wrote:
> Another inconvenience introduced by the ObjectFactory classes is that all of
> the create* methods throw JAXBExceptions. These are checked exceptions and as
> such have to be caught and dealt with. In the current implementation of
> ObjectFactory they are never actually thrown since all that class does during
> a create* method is to invoke the default ctor of the corresponding *Impl
> class--and that ctor cannot throw a JAXB exception.

I agree that this is an inconvenience. We are aware of the issue, and we
are trying to see if we can fix it in 2.0.

You might say we should have another vendor extension switch to do this
in 1.0 :-)

-- 
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