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

XPath.installFunction() arguments do not match implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.7.1
    • None
    • XPath
    • None
    • Operating System: Other
      Platform: Other
    • 7157

    Description

      The org.apache.xpath.XPath class has a method installFunction(). The first
      argument, String name, is not used in the method's implementation (see below),
      and thus fails to do what the method signature and javadoc imply.

      /**

      • Install a built-in function.
      • @param name The unqualified name of the function.
      • @param funcIndex The index of the function in the table.
      • @param func A Implementation of an XPath Function object.
      • @return the position of the function in the internal index.
        */
        public void installFunction(String name, int funcIndex, Function func) { FunctionTable.installFunction(func, funcIndex); }

      Attachments

        Activity

          People

            dleslie@apache.org Donald Leslie
            kermaier Ari Kermaier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: