Completed
Details
Assignee
Alex MillerAlex MillerReporter
Adrian MedinaAdrian MedinaLabels
Approval
OkPatch
Code and TestPriority
MajorAffects versions
Fix versions
Details
Details
Assignee
Alex Miller
Alex MillerReporter
Adrian Medina
Adrian MedinaLabels
Approval
Ok
Patch
Code and Test
Priority

Affects versions
Fix versions
Created March 29, 2015 at 7:26 PM
Updated April 10, 2015 at 4:58 PM
Resolved April 10, 2015 at 4:58 PM
Example form which exhibits the behavior:
(read {:read-cond :allow :eof (Object.)} input)
When EOF is reached in the stream, instead of returning the :eof value specified the boolean value true is always returned instead. If you omit :eof from the option map given to clojure.core/read, false is consistently returned and no EOF error is thrown.
Patch: 0001-CLJ-1685-correctly-handle-eof-option-in-read-read-st-v2.patch
Note: Currently
behaves like
rather than
, the proposed patch makes it believe like
, the proposed patch changes this so that the default behaviour is always to throw on eof unless a :eof option is explicitly included in the read opts.
Patch: clj-1685-v3.patch
Screened by: Alex Miller