tools.reader

read-char returns nil for some input types, on first attempt to read a char

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • 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.

Activity

Hide
Nicola Mometto added a comment -

Thanks, tests for reader-types are now on the TODO list

Show
Nicola Mometto added a comment - Thanks, tests for reader-types are now on the TODO list
Nicola Mometto made changes -
Field Original Value New Value
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Nicola Mometto made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: