hi - new to kotlin here and im trying to use it al...
# serialization
i
hi - new to kotlin here and im trying to use it along with protobufs i have this schema
Copy code
message JEvent {
  string eventTime = 1;
  string eventType = 2;
  string productId = 3;
  string categoryId = 4;
  string categoryCode = 5;
  string brand = 6;
  string price = 7;
  string userId = 8;
  string userSession = 9;
}
and i generate the class, but when the code compiles i get
Copy code
/JEventKt.kt: (13, 5): JvmField has no effect on a private property
Copy code
object JEventKt {
  @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
  @com.google.protobuf.kotlin.ProtoDslMarker
  class Dsl private constructor(
    @kotlin.jvm.JvmField private val _builder: io.ipolyzos.models.Event.JEvent.Builder      <------------- COMPLAINS FOR THIS LINE HERE
  ) {
    companion object {
      @kotlin.jvm.JvmSynthetic
      @kotlin.PublishedApi
      internal fun _create(builder: io.ipolyzos.models.Event.JEvent.Builder): Dsl = Dsl(builder)
    }

    @kotlin.jvm.JvmSynthetic
    @kotlin.PublishedApi
    internal fun _build(): io.ipolyzos.models.Event.JEvent = _builder.build()
this error is with kotlin 1.6.0.. changing to 1.5.10 fixed this issue
r
This was apparently fixed in July - can you try updating the version of the protobuf generator code?