taoensso / nippy

The fastest serialization library for Clojure
https://www.taoensso.com/nippy
Eclipse Public License 1.0
1.04k stars 60 forks source link

java.math.BigInteger is converted to clojure.lang.BigInt when thawed. #38

Closed mlacorte closed 10 years ago

mlacorte commented 10 years ago
(ns example
  (:require [taoensso.nippy :refer [freeze thaw]])
  (:import [java.math BigInteger]))

(def a (BigInteger. "1000"))
(def b (thaw (freeze a)))

(class a) ;; => java.math.BigInteger
(class b) ;; => clojure.lang.BigInt
ptaoussanis commented 10 years ago

Hi Michael, thanks for the report. Thought I'd addressed this already but apparently not. Fix forthcoming :-)

ptaoussanis commented 10 years ago

Addressed on dev branch. Let me know if you need a release cut, otherwise will bundle the change with next update.

mlacorte commented 10 years ago

Thanks. I tested it on my end and confirmed that it's working. I'm just using Nippy for a personal project, so go ahead and bundle it with the next update.