[ http://issues.apache.org/jira/browse/XALANJ-1921?page=all ]

Brian Minchau updated XALANJ-1921:
----------------------------------

    Version: Latest Development Code
                 (was: 2.6)

> ElemTemplateElement throws RuntimeException instead of TransformerException
> ---------------------------------------------------------------------------
>
>          Key: XALANJ-1921
>          URL: http://issues.apache.org/jira/browse/XALANJ-1921
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-interpretive, parse-or-compile
>     Versions: Latest Development Code
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: elharo
>     Assignee: Xalan Developers Mailing List

>
> The JavaDoc for the error() method in
> org.apache.xalan.templates.ElemTemplateElement
> <http://xml.apache.org/xalan-j/apidocs/org/apache/xalan/templates/ElemTemplateElement.html#error(java.lang.String,%20java.lang.Object[])>
> asks:
> "Throw a template element runtime error. (Note: should we throw a
> TransformerException instead?)"
> I'm prepared to answer this: yes, Xalan should. Whil running the Xalan
> conformance test suite from OASIS (specifically numberformat_numberformat45
> java.lang.RuntimeException: ElemTemplateElement error: Malformed format 
> string:
> 000.000,###) I managed to exercise this bit of code and the RuntimeException 
> it
> threw was quite a surprise. I'm still trying to figure out exactly where the 
> bug
> that caused this exception to be thrown lies. In the meantime, however, my 
> code
> was ready to receive a TransformerException at this point and not  to receive 
> a
> generic RunimeException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to