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 2003/01/23 15:02:01 UTC

DO NOT REPLY [Bug 16361] New: - Function::Execute in XPath/Function.cpp runs wrong code when 3 args have been passed in

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16361

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

           Summary: Function::Execute in XPath/Function.cpp runs wrong code
                    when 3 args have been passed in
           Product: XalanC
           Version: 1.4.x
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: XPathC
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: wsakers@latentzero.com


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