Details
-
Type:
Defect
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: Release 1.3
-
Fix Version/s: Release 1.3
-
Component/s: None
-
Labels:None
-
Patch:Code and Test
-
Approval:Ok
Description
Per Rich, "We should never be printing something that can't be read."
user=> (binding [*print-dup* true] (print-str (java.math.BigInteger. "1"))) "1BIGINT" user=> (read-string *1) NumberFormatException Invalid number: 1BIGINT clojure.lang.LispReader.readNumber (LispReader.java:253)
This can either be resolved by removing the print-dup for BigInteger, printing it using the N notation (thus being read in as a BigInt), or adding read support for the BIGINT notation.
Patch emits BigIntegers using the N notation.
Apply patch after
CLJ-799.CLJ-799.