data.fressian

missing support for bytes

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    [org.clojure/clojure "1.7.0"]
    [org.clojure/data.fressian "0.2.1"]

Description

single bytes are not supported

;; this is ok
(-> (float 10) fress/write fress/read)  ;=> 10.0

;; this breaks
(-> (byte 10) fress/write fress/read)
;; IllegalArgumentException Cannot write 10 as tag null  org.fressian.handlers.WriteHandlerLookup.requireWriteHandler 

;; white this works
(-> (byte-array [(byte 10)]) fress/write fress/read) ;;=> [10]

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: