Is the conflict between `@Transaction` and `-Xjvm-...
# room
a
Is the conflict between
@Transaction
and
-Xjvm-default=all
a known issue? Building on android-room-with-a-view and adding
-Xjvm-default=all
to build.gradle and then adding a @Transaction’d
deleteAllAndInsert
to WordDao.kt results in
Copy code
WordDao_Impl.java:84: error: not an enclosing class: WordDao
        return WordDao.super.deleteAllAndInsert(word, __cont);
Copy code
@Transaction
    suspend fun deleteAllAndInsert(word: Word) {
        deleteAll()
        insert(word)
    }
p
I have also run into this issue
Not sure if it’s due to user error or if a work around is needed
a
Looks similar to https://issuetracker.google.com/issues/199546642 which is marked as fixed though it’s not clear which release (if any) it is in.