This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-24
Channels
- # announcements (4)
- # asami (5)
- # babashka (20)
- # beginners (94)
- # bristol-clojurians (1)
- # calva (23)
- # cider (2)
- # clj-commons (3)
- # clj-kondo (43)
- # cljfx (2)
- # cljs-dev (13)
- # clojure (112)
- # clojure-dev (44)
- # clojure-europe (17)
- # clojure-nl (5)
- # clojure-poland (12)
- # clojure-spec (2)
- # clojure-uk (3)
- # clojurebridge (1)
- # clojurescript (92)
- # cursive (17)
- # data-science (8)
- # datahike (1)
- # datalevin (1)
- # datomic (3)
- # deps-new (7)
- # events (2)
- # fulcro (40)
- # graalvm (110)
- # holy-lambda (16)
- # introduce-yourself (1)
- # lsp (13)
- # malli (8)
- # missionary (12)
- # off-topic (10)
- # pathom (13)
- # polylith (10)
- # portal (28)
- # re-frame (37)
- # reitit (1)
- # releases (1)
- # shadow-cljs (30)
- # spacemacs (1)
- # tools-deps (9)
- # xtdb (10)
Playing around, as one does from time to time, and getting an exception. Part of the message is:
(java.lang.Long and java.lang.String are in module java.base of loader 'bootstrap')
I suspect that this comes from the jvm itself, but I’m curious if this message is useful to anyone?It looks like the most important part of the exception has been left out. For example:
user=> (String/format 1 (object-array))
Execution error (ClassCastException) at user/eval4 (REPL:1).
class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader 'bootstrap')
Well, that part is obviously important, so I left it out. I’m more interested in figuring out when the part that I included is deemed important.
For example:
class test.X cannot be cast to class java.lang.String (test.X is in unnamed module of loader clojure.lang.DynamicClassLoader @3fcdcf; java.lang.String is in module java.base of loader 'bootstrap')
Here you can see that text.X
was created in Clojure, so you can search for test.clj
on the classpath, instead of searching for test/X.java
.👍 1
"Add a number to another number in JavaScript"