Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-921

BooleanUtils.xor(boolean...) produces wrong results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.2
    • lang.*
    • None

    Description

      BooleanUtils.xor(true, true, false, true) returns false, although
      true ^ true ^ false ^ true is true. This is because the implementation only checks the count of true in the provided array.

      Attachments

        Issue Links

          Activity

            People

              britter Benedikt Ritter
              britter Benedikt Ritter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: