Details

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

      Operating System: All
      Platform: All

      Description

      We get a strange result with variable and/or pointer using.

      Work well :
      context.getVariables().declareVariable("v1", "Dmitri");
      Pointer pointer1 = context.getPointer("/employees
      [firstName=$v1]/lastName");
      Pointer pointer2 = context.getPointer("/employees[firstName=$v1]");

      Doesn't seem to work :
      context.getVariables().declareVariable("v1", "Dmitri");
      Pointer pointer1 = context.getPointer("/employees[firstName=$v1]");
      Pointer pointer2 = context.getPointer("/employees[firstName=$v1]");

      Reference pointer1 is a "BeanPointer".
      Reference pointer2 is a "NullPointer", so its "getValue" method return
      always "null".

      We can obtain only one pointer corresponding to a given expression. This
      problem appears only with path containing variables.

        Activity

        Jérôme Pochat created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 8870 12340219
        Henri Yandell made changes -
        Affects Version/s 1.0 Beta 1 [ 12311649 ]
        Project Commons [ 12310458 ] Commons JXPath [ 12310480 ]
        Key COM-68 JXPATH-36
        Component/s JXPath [ 12311120 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Henri Yandell made changes -
        Affects Version/s 1.0 Beta 1 [ 12311816 ]
        Niall Pemberton made changes -
        Status Resolved [ 5 ] Reopened [ 4 ]
        Niall Pemberton made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 1.0 Final [ 12311829 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jérôme Pochat
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development