Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
da...@google.com <da...@google.com> #3
Yes, kapt incremental compilation support is available since 1.3.40-dev-795
Is there already some plan to add support to Room?
Is there already some plan to add support to Room?
sk...@gmail.com <sk...@gmail.com> #4
#3 incremental kapt is available in 1.3.30 released yesterday too.
yb...@google.com <yb...@google.com>
da...@google.com <da...@google.com> #5
Is there already some ETA?
Description
Version used: 2.1.0-alpha03
Devices/Android versions reproduced on: compilation error
When using suspend SELECT method with TypeConverter parameter, room-compiler generate incorrect method code with return type java.lang.Object.
Compilation exceptions:
• The query returns some columns [...] which are not used by java.lang.Object. You can use @ColumnInfo annotation on the fields to specify the mapping. You can suppress this warning by annotating the method with @SuppressWarnings(RoomWarnings.CURSOR_MISMATCH).
• Not sure how to convert a Cursor to this method's return type (java.lang.Object).
• Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type. You can consider adding a Type Adapter for this.
But when I remove suspend modifier all is ok.