users@jaxb.java.net

Re: JAXB Reference Implementation Bug ?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 26 Jan 2004 09:27:49 -0800

> I was looking at the code generated by a JAXB compile ( xjc.sh that
> came with Java web services package version 1.2 )
>
> ( impl.runtime.validatorImpl class )
>
> The code for validateRoot() finally executes this exception handler
>
> -------------------------------------------------------------------
> } catch( SAXException e ) {
> // TODO exception handling.
> // we need a consistent mechanism to convert SAXException
> into JAXBException
> Exception nested = e.getException();
> if( e != null ) {
> throw new ValidationException( nested );
> } else {
> throw new ValidationException( e );
> }
> //return false;
> }
>
> ---------------------------------------------------------------------------
>
> I think they meant "if( nested != null )".

Yep. And it's been fixed in the weekly builds, which you can download
from the file sharing section.




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