commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-921) BooleanUtils.xor(boolean...) produced wrong results
Date Tue, 15 Oct 2013 17:46:46 GMT
Benedikt Ritter created LANG-921:
------------------------------------

             Summary: BooleanUtils.xor(boolean...) produced wrong results
                 Key: LANG-921
                 URL: https://issues.apache.org/jira/browse/LANG-921
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.*
    Affects Versions: 3.1
            Reporter: Benedikt Ritter
            Assignee: Benedikt Ritter
             Fix For: 3.2


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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message