Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2163

Incorrect error message in booleanF method.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.7.1
    • 2.7
    • XSLTC
    • None
    • All.
    • PatchAvailable
    • fp4

    Description

      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.

      Attachments

        1. BasisLibrary.2163.patch.txt
          0.6 kB
          Brian Minchau

        Activity

          People

            minchau@ca.ibm.com Brian Minchau
            ardvaark Brian Vargas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: