Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-243

SwappedDataInputStream readBoolean is inverted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0, 1.1, 1.2, 1.3, 1.3.1, 1.3.2, 1.4
    • 2.0
    • Streams/Writers
    • None

    Description

      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.

      Attachments

        Activity

          People

            niallp Niall Pemberton
            raymyers Ray Myers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified