Moearly / protostuff

Automatically exported from code.google.com/p/protostuff
Apache License 2.0
0 stars 0 forks source link

The value of DataInput.readByte() should not be eof-checked since that method throws EOFException #165

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
InputStream.read() returns -1 on EOF.
DataInput.readByte() can return any value (including -1), and throws 
EOFException on EOF.

https://groups.google.com/forum/#!topic/protostuff/D7Bb1REf8pQ

Original issue reported on code.google.com by david.yu...@gmail.com on 18 Nov 2014 at 3:38

GoogleCodeExporter commented 8 years ago
Fixed @ rev 1684

Original comment by david.yu...@gmail.com on 18 Nov 2014 at 3:50