[TRDR-1] read-char returns nil for some input types, on first attempt to read a char Created: 12/Feb/13 Updated: 12/Feb/13 Resolved: 12/Feb/13 |
|
| Status: | Resolved |
| Project: | tools.reader |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Major |
| Reporter: | Andy Fingerhut | Assignee: | Andy Fingerhut |
| Resolution: | Completed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Patch: | Code |
| Description |
|
The return value from Java's .read method is -1 for EOF. A couple of condition checks in the code appear to be reversed. See the patch. |
| Comments |
| Comment by Nicola Mometto [ 12/Feb/13 4:47 PM ] |
|
Thanks, tests for reader-types are now on the TODO list |