JAXB Reference Implementation Bug ?

Discussion in 'Java' started by Sony Antony, Jan 23, 2004.

  1. Sony Antony

    Sony Antony Guest

    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 )".


    This results in a ValidationException being thrown without any useful
    information at all contained within, if nested happens to be null.
    In otherwords if there is no nested exception original SAXException -
    which probably contained a message and definitely stacktrace - is just
    thrown away.

    1. Am I write in my conclusion above ? Is this a known bug ?

    2. What is the best JAXB implementation available out there ?
    3. Is the RI known for its standard compliance ?

    Thanks
    --sony
     
    Sony Antony, Jan 23, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sony Antony

    JAXB, XSLT comparison

    Sony Antony, Jul 17, 2003, in forum: Java
    Replies:
    1
    Views:
    997
    Arto V. Viitanen
    Jul 18, 2003
  2. Sony Antony
    Replies:
    0
    Views:
    431
    Sony Antony
    Jan 23, 2004
  3. Michael Tsang
    Replies:
    32
    Views:
    1,157
    Richard Bos
    Mar 1, 2010
  4. Michael Tsang
    Replies:
    54
    Views:
    1,238
    Phil Carmody
    Mar 30, 2010
  5. sanket
    Replies:
    7
    Views:
    1,094
    Tsung
    Nov 3, 2011
Loading...

Share This Page