It should be documented that multiple filters can be used

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.4.0, 5.0
    • Component/s: core-svc
    • beta
    • generic, x86
    • generic, windows_xp
    • Not verified

      If you did:

      req.addClassFilter("a*");
      req.addClassFilter("b*");

      then this is:

      (name.match("a*")) && (name.match("b*"))

      And yes there would be no match. However,

      req.addClassExclusionFilter("a*");
      req.addClassExclusionFilter("b*");

      then this is:

      (!name.match("a*")) && (!name.match("b*"))

      And anything that doesn't start "a" or "b" will pass.

      The javadoc for addClassFilter doesn't say what happens if
      it is called more than once.

      It should be documented that you can use multiple filters and that they use "cut-off and".

            Assignee:
            Jamie Ho (Inactive)
            Reporter:
            Jamie Ho (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: