Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4417021

It should be documented that multiple filters can be used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0, 5.0
    • 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".

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: