Fixed
Status Update
Comments
yt...@gmail.com <yt...@gmail.com> #2
(copy-pasting error in example, c -> course
ya...@google.com <ya...@google.com>
yb...@google.com <yb...@google.com> #3
looks like we need to special handle java8 interfaces methods w/ default methods.
yaraki@, lets add a test for kotlin default methods as well.
yaraki@, lets add a test for kotlin default methods as well.
Description
Version used: 1.0.0
Devices/Android versions reproduced on: 7.0
Suppose we have Dao interface with default method with transaction.
```
@Dao
public interface CourseDao {
@Transaction default int updateWithOperation(Course c) {
....
}
}
```
Generated Impl class class try to call super, with bad expression.
```
public class CourseDao_Impl implements CourseDao {
@Override
public int updateWithOperation(Course c) {
__db.beginTransaction();
try {
int _result = super.updateWithOperation(course);
__db.setTransactionSuccessful();
return _result;
} finally {
__db.endTransaction();
}
}
}
```
Expected:
CourseDao.super.updateWithOperation(course);
Actual:
super.updateWithOperation(course);
This raises compilation error.