Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsupportedOperationException when printing java.sql.Date #85

Open
jkrasnay opened this issue Mar 5, 2023 · 2 comments
Open

UnsupportedOperationException when printing java.sql.Date #85

jkrasnay opened this issue Mar 5, 2023 · 2 comments

Comments

@jkrasnay
Copy link

jkrasnay commented Mar 5, 2023

This code throws an UnsupportedOperationException in v0.6.26 (OpenJDK 11.015)

(let [d (java.sql.Date. (System/currentTimeMillis))]
    (fipp/pprint {:foo d}))

It works fine on v0.6.25.

@brandonbloom
Copy link
Owner

Please provide a stack trace with full error message.

@jkrasnay
Copy link
Author

jkrasnay commented Mar 6, 2023

#error {
:cause nil
:via
[{:type java.lang.UnsupportedOperationException
:message nil
:at [java.sql.Date toInstant "Date.java" 316]}]
:trace
[[java.sql.Date toInstant "Date.java" 316]
[fipp.ednize.instant$eval284$fn__285 invoke "instant.clj" 22]
[fipp.ednize$eval199$fn__200$G__190__205 invoke "ednize.clj" 4]
[fipp.ednize$edn invokeStatic "ednize.clj" 15]
[fipp.ednize$edn invoke "ednize.clj" 14]
[fipp.edn.EdnPrinter visit_unknown "edn.cljc" 28]
[fipp.visit$visit_STAR_ invokeStatic "visit.cljc" 52]
[fipp.visit$visit_STAR_ invoke "visit.cljc" 32]
[fipp.visit$visit invokeStatic "visit.cljc" 61]
[fipp.visit$visit invoke "visit.cljc" 58]
[fipp.edn.EdnPrinter$fn__1355 invoke "edn.cljc" 66]
[fipp.edn$pretty_coll$fn__1330 invoke "edn.cljc" 13]
[clojure.core$map$fn__5931$fn__5932 invoke "core.clj" 2759]
[clojure.lang.TransformerIterator step "TransformerIterator.java" 79]
[clojure.lang.TransformerIterator hasNext "TransformerIterator.java" 97]
[clojure.lang.RT chunkIteratorSeq "RT.java" 517]
[clojure.core$sequence invokeStatic "core.clj" 2679]
[clojure.core$sequence invoke "core.clj" 2664]
[fipp.edn$pretty_coll invokeStatic "edn.cljc" 16]
[fipp.edn$pretty_coll invoke "edn.cljc" 9]
[fipp.edn.EdnPrinter visit_map "edn.cljc" 64]
[fipp.visit$visit_STAR_ invokeStatic "visit.cljc" 47]
[fipp.visit$visit_STAR_ invoke "visit.cljc" 32]
[fipp.visit$visit invokeStatic "visit.cljc" 61]
[fipp.visit$visit invoke "visit.cljc" 58]
[fipp.edn$pretty invokeStatic "edn.cljc" 104]
[fipp.edn$pretty invoke "edn.cljc" 95]
[fipp.edn$pprint invokeStatic "edn.cljc" 109]
[fipp.edn$pprint invoke "edn.cljc" 106]
[fipp.edn$pprint invokeStatic "edn.cljc" 107]
[fipp.edn$pprint invoke "edn.cljc" 106]
[user$eval1389 invokeStatic "NO_SOURCE_FILE" 2]
[user$eval1389 invoke "NO_SOURCE_FILE" 1]
[clojure.lang.Compiler eval "Compiler.java" 7194]
[clojure.lang.Compiler eval "Compiler.java" 7149]
[clojure.core$eval invokeStatic "core.clj" 3215]
[clojure.core$eval invoke "core.clj" 3211]
[clojure.main$repl$read_eval_print__9206$fn__9209 invoke "main.clj" 437]
[clojure.main$repl$read_eval_print__9206 invoke "main.clj" 437]
[clojure.main$repl$fn__9215 invoke "main.clj" 458]
[clojure.main$repl invokeStatic "main.clj" 458]
[clojure.main$repl_opt invokeStatic "main.clj" 522]
[clojure.main$main invokeStatic "main.clj" 667]
[clojure.main$main doInvoke "main.clj" 616]
[clojure.lang.RestFn invoke "RestFn.java" 397]
[clojure.lang.AFn applyToHelper "AFn.java" 152]
[clojure.lang.RestFn applyTo "RestFn.java" 132]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.main main "main.java" 40]]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants