Fixed
Status Update
Comments
yb...@google.com <yb...@google.com> #2
A couple of questions:
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
ap...@google.com <ap...@google.com> #3
Tested on Android 12 Emulator with custom executor, but cannot repro this issue.
Description
The output generated by the Room processor for this input won't compile, because the generated Java tries to "new" the object expression type:
```kt
@Database(entities = [FooEntity::class], version = 1, exportSchema = false)
internal abstract class FooDatabase : RoomDatabase() {
abstract fun fooDao(): FooDao
}
@Entity(tableName = "foo")
@TypeConverters(FooTypeConverters::class)
data class FooEntity internal constructor(
@PrimaryKey val id: Int,
val proto: SomeProto
)
object FooTypeConverters {
@TypeConverter
fun toSomeProto(bytes: ByteArray): SomeProto {
return SomeProto.parseFrom(bytes)
}
@TypeConverter
fun toBytes(someProto: SomeProto): ByteArray {
return someProto.toByteArray()
}
}
```