Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      Nightly build: commons-jxpath-20020902

      SAMPLE XML:
      <nill>
      <test>Blah</test>
      </nill>

      SAMPLE CODE:
      jxpathContext.createPathAndSetValue("nill/test/@a", "blah");

      SYMPTOMS:
      Throws a JXPathException in JXPathContextReferenceImpl (line 354, where
      comment says "This should never happen")

      DEBUG INFO:
      line 341: "Object result = expr.computeValue(getRootContext());"
      "result" is null instead of a NullPointer (or whatever it should be)

        Activity

        Hide
        Dmitri Plotnikov added a comment -

        The issue was primarily with SimplePathInterpreter. That class is responsible
        for the evaluation of certain (simple) paths. Only those paths processed by
        SimplePathInterpreter can be used with JXPathContext.createPath(). The paths
        containing the attribute:: axis were not supported by SimplePathInterpreter and
        therefore could never be used with createPath(). I added the necessary support
        and now we can involve the AbstractFactory in the creation of attributes.

        Show
        Dmitri Plotnikov added a comment - The issue was primarily with SimplePathInterpreter. That class is responsible for the evaluation of certain (simple) paths. Only those paths processed by SimplePathInterpreter can be used with JXPathContext.createPath(). The paths containing the attribute:: axis were not supported by SimplePathInterpreter and therefore could never be used with createPath(). I added the necessary support and now we can involve the AbstractFactory in the creation of attributes.

          People

          • Assignee:
            Unassigned
            Reporter:
            trond.aasan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development