Completed
Details
Details
Assignee
Unassigned
UnassignedReporter
Cosmin Stejerean
Cosmin StejereanApproval
Ok
Patch
Code and Test
Priority

Affects versions
Fix versions
Created February 4, 2012 at 12:06 AM
Updated August 18, 2012 at 1:12 PM
Resolved August 18, 2012 at 1:12 PM
In general Clojure's number types can be read prefixed with either a +
or - and this seems to work correctly for reading integers and floats.
In the case of ratios however things break down when ratios are
prefixed with a +.
The ratio pattern in LispReader.java does match on ratios starting
with both + and - but matchNumber fails on ratios prefixed with +
because it ends up calling "new BigInteger(m.group(1))" and it turns
out the constructor for BigInteger has no problems with negative
numbers but it doesn't like numbers prefixed by a +.