ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: [GUMP@vmgump]: Project test-ant-no-xerces (in module ant) failed
Date Wed, 14 Jan 2009 05:25:53 GMT
The test failure is related to a difference between Xalan and the
version of Xalan that is part of Java5 (and Java6 as well).

When ASF Xalan encounters an invalid XML file, it informs the
registered ErrorListener via fatalError and our implementation of the
ErrorListener turns it into a BuildException.

The JDK Xalan either doesn't invoke fatalError at all or ignores our
BuildException and throws the original TransformerException - no
matter what, either violates my reading of the JAXP 1.3 javadocs of

| For transformation errors, a Transformer must use this interface
| instead of throwing an exception: it is up to the application to
| decide whether to throw an exception for different types of errors and
| warnings. Note however that the Transformer is not required to
| continue with the transformation after a call to fatalError.

but I guess it is the next paragraph that applies

| Transformers may use this mechanism to report XML parsing errors as
| well as transformation errors.

since our test case is an XML parsing error.  I'll try to modify the
test to use a real transformation error instead.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message