Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 4.0-alpha1, 4.0
    • Component/s: Bag
    • Environment:

      any

      Description

      The problem appears in version 3.2.1 and in revision 1489197. I
      attached a one-line patch that fixes it.

      In method "AbstractMapBag.containsAll", the loop over
      "other.uniqueSet()" should return immediately after "result" becomes
      "false", because "result = result && contains;" can never become
      "true" again. All the iterations after "result" becomes "false" do
      not perform any useful work, at best they just set "result" again to
      "false".

        Attachments

        1. patch.diff
          0.6 kB
          Adrian Nistor

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adriannistor Adrian Nistor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: