commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ray Myers (JIRA)" <j...@apache.org>
Subject [jira] Created: (IO-243) SwappedDataInputStream readBoolean is inverted
Date Sat, 03 Apr 2010 00:36:27 GMT
SwappedDataInputStream readBoolean is inverted
----------------------------------------------

                 Key: IO-243
                 URL: https://issues.apache.org/jira/browse/IO-243
             Project: Commons IO
          Issue Type: Bug
          Components: Streams/Writers
    Affects Versions: 1.4, 1.3.2, 1.3.1, 1.3, 1.2, 1.1, 1.0
            Reporter: Ray Myers
            Priority: Minor


The method readBoolean in SwappedDataInputStream returns true when the byte is zero, false
otherwise. In accordance with the contract in java.io.DataInput, true should indicate a non-zero
byte. SwappedDataInputStream is for reading Little Endian formats, it should not change the
boolean value of individual bytes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message