Fixed
Status Update
Comments
yb...@google.com <yb...@google.com> #2
The same happens when trying to install eap versions of the plugin (e.g. 1.1.3-eap-85-Studio3.0-1).
ap...@google.com <ap...@google.com> #3
Yes, we had to temporarily disable updates. This will be fixed in Canary 5.
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()
}
}
```