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

http://issues.apache.org/bugzilla/show_bug.cgi?id=35495

           Summary: Extension functions no longer work in certain cases.
           Product: Commons
           Version: 1.2 Final
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: JXPath
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


In trying to upgrade to jxpath 1.2, I discovered a regression (or, at least, an 
undocumneted change in behavior) with the previous version I was using.

The following unit test used to pass, but now fails with the message that the 
function 'myString' is not found.

public class TestJXPath extends TestCase {
  public class MyClass {
    public String myString() {
      return "hello";
    }
  }
  public void testExtensionFunction() {
    MyClass obj = new MyClass();
    JXPathContext context = JXPathContextFactory.newInstance().newContext(obj);
    Object result = context.iterate("myString(.)").next();
    assertEquals("hello", result);
  }
}

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to