You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ray Myers (JIRA)" <ji...@apache.org> on 2010/04/03 02:36:27 UTC
[jira] Created: (IO-243) SwappedDataInputStream readBoolean is
inverted
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.
[jira] Updated: (IO-243) SwappedDataInputStream readBoolean is
inverted
Posted by "Ray Myers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ray Myers updated IO-243:
-------------------------
Attachment: (was: IO-243-SwappedDataInputStream-readBoolean.path)
> 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.0, 1.1, 1.2, 1.3, 1.3.1, 1.3.2, 1.4
> Reporter: Ray Myers
> Priority: Minor
> Attachments: IO-243-SwappedDataInputStream-readBoolean.patch
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> 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.
[jira] Updated: (IO-243) SwappedDataInputStream readBoolean is
inverted
Posted by "Ray Myers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ray Myers updated IO-243:
-------------------------
Attachment: IO-243-SwappedDataInputStream-readBoolean.path
> 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.0, 1.1, 1.2, 1.3, 1.3.1, 1.3.2, 1.4
> Reporter: Ray Myers
> Priority: Minor
> Attachments: IO-243-SwappedDataInputStream-readBoolean.patch
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> 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.
[jira] Updated: (IO-243) SwappedDataInputStream readBoolean is
inverted
Posted by "Ray Myers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ray Myers updated IO-243:
-------------------------
Attachment: IO-243-SwappedDataInputStream-readBoolean.patch
> 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.0, 1.1, 1.2, 1.3, 1.3.1, 1.3.2, 1.4
> Reporter: Ray Myers
> Priority: Minor
> Attachments: IO-243-SwappedDataInputStream-readBoolean.patch
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> 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.
[jira] Resolved: (IO-243) SwappedDataInputStream readBoolean is
inverted
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton resolved IO-243.
--------------------------------
Assignee: Niall Pemberton
Fix Version/s: 2.0
Resolution: Fixed
Fixed, thanks for the patch!
http://svn.apache.org/viewvc?view=revision&revision=995160
> 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.0, 1.1, 1.2, 1.3, 1.3.1, 1.3.2, 1.4
> Reporter: Ray Myers
> Assignee: Niall Pemberton
> Priority: Minor
> Fix For: 2.0
>
> Attachments: IO-243-SwappedDataInputStream-readBoolean.patch
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> 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.