Details

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

      Description

      Checking test (Issue172_CountAttributeNode) I came with the following fix for the code in AttributeContext line 72
      from


      if (!(nodeTest instanceof NodeNameTest))

      { return false; }

      QName name = ((NodeNameTest) nodeTest).getNodeName();

      ------
      '
      to
      — (outside method)
      private static final QName WILDCARD = new QName("", "*");
      — (in method)

      final QName name ;
      if (nodeTest instanceof NodeTypeTest)
      {
      if (((NodeTypeTest) nodeTest).getNodeType() == Compiler.NODE_TYPE_NODE)
      name = WILDCARD;
      else return false;
      }
      else if (nodeTest instanceof NodeNameTest) {
      name = ((NodeNameTest) nodeTest).getNodeName();
      }
      else
      {
      return false;
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vivodamichele@hotmail.com Michele Vivoda
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: