Incorrect error message in booleanF method.
-------------------------------------------

         Key: XALANJ-2163
         URL: http://issues.apache.org/jira/browse/XALANJ-2163
     Project: XalanJ2
        Type: Bug
  Components: XSLTC  
    Versions: CurrentCVS    
 Environment: All.
    Reporter: Brian Vargas
    Priority: Trivial


The implementation of the XSLTC XPath boolean() function in the 
BasisLibrary.booleanF() method contains an incorrect error message that appears 
when the method receives an inappropriate argument.  The else clause passes 
"number()" to the runtimeError() method, when it should pass the string 
"boolean()".

It looks to me like somebody got a bit too overzealous in their copy-paste 
coding.  ;-)

In any event, it makes for a killer red herring in the rare event that that 
error occurs, and the fix is trivial.

The file is src/org/apache/xalan/xsltc/runtime/BasisLibrary.java.

-- 
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