You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Bjoern Martin <ma...@fh-karlsruhe.de> on 2001/07/02 15:08:09 UTC

Re: [Bug 2230] New: - Method newTransformer(javax.xml.transform.Source) should not return null, but does so

>+ According to the apidocs [1], the method 
>+ javax.xml.transform.TransformerFactory.newTransformer
>+ (javax.xml.transform.Source) is not supposed to return null under
>+ any circumstances. But if you assign an error listener [2] to this 
>+ class _before_ you try to get an instance of a transformer and the 
>+ stylesheet is not a well formed document, this 'not wellformed'
>+ error is reported to the error listener and 'null' is returned, but
>+ no exception is thrown.
>+ 
>+ I suggest it is a bug in the apidocs for two reasons:
>+ 1. the behavior is logical, as one intends to omit exceptions by
>+ registering the error listener to the factory
>+ 2. the apidocs point out the version 'Alpha, 2.0.0, July 05, 2000'
>+ on the overview page [3]; maybe it's just not updated properly
>+ 
>+ [1] http://xml.apache.org/xalan-
j/apidocs/javax/xml/transform/TransformerFactory.html#newTransformer(j
avax.xml.transform.Source)
>+ [2] http://xml.apache.org/xalan-
j/apidocs/javax/xml/transform/ErrorListener.html
>+ [3] http://xml.apache.org/xalan-j/apidocs/overview-summary.html

I'd appreciate if anyone could tell me whom to contact to resolve this 
simple case. Because I'd like to know if I implemented this class the 
right way or if I found a bug. Thank you.

Regards.

--
Bjoern Martin                                bjoern.martin@gmx.net