Covariant return breaks runtime compatibility with Java 8. Adding casts to source code fixes this issue.