DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30666>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30666

ElemTemplateElement throws RuntimeException instead of TransformerException

           Summary: ElemTemplateElement throws RuntimeException instead of
                    TransformerException
           Product: XalanJ2
           Version: 2.6
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.templates
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

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

Reply via email to