Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-231

Function::Execute in XPath/Function.cpp runs wrong code when 3 args have been passed in

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • 1.4.x
    • None
    • XPathC
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 16361

    Description

      In XPath/Function.cpp, Function::execute for an overriden function with 3 args,
      the number of args is compared against 2? Which obviously is incorred:

      else if (theArgCount == 1)

      { return execute(executionContext, context, args[0], locator); }

      else if (theArgCount == 2)

      { return execute(executionContext, context, args[0], args[1], locator); }

      else if (theArgCount == 2) //This should be 3

      { return execute(executionContext, context, args[0], args[1], args [2], locator); }

      else

      Attachments

        Activity

          People

            Unassigned Unassigned
            wsakers@latentzero.com Wayne Akers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: