This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-30
Channels
- # announcements (2)
- # bangalore-clj (6)
- # beginners (33)
- # cider (4)
- # clojure (9)
- # clojure-brasil (2)
- # clojure-spec (6)
- # clojurescript (36)
- # cursive (13)
- # datomic (3)
- # emacs (1)
- # fulcro (6)
- # graalvm (2)
- # interop (4)
- # luminus (1)
- # midje (1)
- # pathom (1)
- # random (1)
- # reagent (4)
- # shadow-cljs (11)
- # tools-deps (42)
- # xtdb (10)
So, having a problem. I have a piece of code, that in Kotlin runs perfectly, it's basically a protobuf object that I call toByteArray
on, i.e., message.toByteArray()
. Works perfectly. The same in clojure (.toByteArray message)
throws me an IllegalAccessException (JVMs in both cases is OpenJDK 12) and I'm on Clojure 1.10.1), here's what clojure is telling me...
Execution error (IllegalAccessError) at com.foo.Foo$Bar/getSerializedSize (Bar.java:7881).
class com.foo.Foo$Bar tried to access private field com.google.protobuf.AbstractMessage.memoizedSize (com.foo.Foo$Bar and com.google.protobuf.AbstractMessage are in unnamed module of loader 'app')