You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/08/14 15:17:32 UTC

DO NOT REPLY [Bug 30666] New: - ElemTemplateElement throws RuntimeException instead of TransformerException

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: xalan-dev@xml.apache.org
        ReportedBy: elharo@metalab.unc.edu


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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org