val cachedBytes = super.getInputStream().readBytes()
it was changed to
Copy code
val cachedBytes: ByteArray by lazy { super.getInputStream().readBytes() }
and everything appeared to work, all tests in intellij passed, and it worked when calling it from kotlin in external projects
but something was different when calling it from java in external projects (the stream is consumed before it's cached?), and i can't figure out why 🤔
o
orangy
03/03/2018, 10:52 PM
That looks like a discussion for #C0B8RC352, I think there might be some app server kicking in, e.g. if it’s a multipart
t
tipsy
03/04/2018, 12:50 AM
turns out i just ran the wrong main, behavior was consistent in both java and kotlin