Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
The engineering team is aware of this request and are currently investigating it. There is no ETA at this time for a release, but all further communications should occur here.
sk...@gmail.com <sk...@gmail.com> #4
Can you share an update regarding this request?
yb...@google.com <yb...@google.com>
da...@google.com <da...@google.com> #5
An update would be great!
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.