Fork me on GitHub

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$Bar/getSerializedSize (
class$Bar tried to access private field ($Bar and are in unnamed module of loader 'app')


other functions on the message work, i.e., (.getDirection message) => "north"


I've been stuck on this for a few hours, can't figure it out. I appeal to the collective wisdom!