Not sure if this is the right place for this since...
# serialization
c
Not sure if this is the right place for this since my issue might be from
@Parcelize
but I'm trying to use both
@Serializable
and parcelize in conjunction.
Copy code
class TestStuff {

  @test
  fun testSerializableParcelable() {
    DummyParcelable(42)
  }

  @Serializable
  @Parcelize
  data class DummyParcelable(val int: Int): Parcelable
}
throws:
Copy code
java.lang.NoClassDefFoundError: TestStuff$DummyParcelable$Companion$Creator

	at TestStuff$DummyParcelable$Companion.<clinit>(TestStuff.kt)
	at TestStuff$DummyParcelable.<clinit>(TestStuff.kt)
	at TestStuff.testSerializableParcelable(TestStuff.kt:21)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
but
Copy code
@test
  fun testSerializableParcelable() {
    DummyParcelable(42)
  }

  @Serializable
  @Parcelize
  data class DummyParcelable(val int: Int): Parcelable {
    companion object
  }
works fine kotlin version 1.1.51 and serialization version 0.1.1 I would log an issue but I dont really know how to debug further and I also dont know if this is enough information to log an issue