[EMAIL PROTECTED] wrote:
> 
> Hi John and Edwin,
> 
> On Tuesday Dec 18, 2001, Edwin Goei wrote:
> 
> > John Rousseau wrote:
> > >
> > > Has anyone used Xerces Java 2 for passing the 1.3 CTS?
> >
> > JAXP 1.1 and J2EE 1.3 require specific versions of SAX and DOM which are
> > not signature compatible with the latest versions.
> 
> I know of one J2EE implementation using Xerces 2 (not beta4 but the
> signatures should be the same).  Edwin, can you demonstrate this signature
> incompatibility---I'm not aware of any problems in this regard.

JAXP 1.1 specified SAX 2.0 final.  In subsequent SAX2 bugfix releases,
some method signatures were changed which caused failures in the J2EE
1.3 CTS tests.  For example:

  + SAX DefaultHandler.resolveEntity(...) throws IOException
  + SAXException, and other SAX exceptions had public no-arg
constructors added

These minor changes caused CTS to fail.  However, the newer SAX releases
also fixed bugs in the SAX implementation like in AtrributesImpl.  So in
the JAXP RI from Sun, we took a bugfixed release of SAX and changed the
signatures to be like SAX 2.0 final.  The signature changes could be
considered SAX spec fixes, but as I understand it, these cannot be
incorporated into JAXP until the next major release of the API where
spec changes are allowed.  Note, JAXP 1.2 is not considered a major spec
change but a maintenance release which has compatible signatures.

I think the rules are somewhat complicated (but necessarily so) so this
is my understanding.  I am told that J2EE licensees should ask their
support engineer for more info.  I know the above from running into the
same problem w/ the J2EE 1.3 RI which contains the JAXP RI.

> 
> >Is there any way to get the changes made to 1.4.4 to allow it to
> pass the 1.3 CTS?
> 
> Sure--you can make them!  :-)  In all seriousness though, I'm not aware of
> any active committers who have an interest in putting out another release
> of Xerces1.  But if you submit a set of patches to bring the parser into
> compliance, it's possible that could change.

The easiest thing to do would be to download the JAXP RI 1.1.3 from the
java xml pack fall and get the javax.xml.*, org.w3c.dom, org.xml.sax.*
packages from there since we did the work for you already.

-Edwin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to