Spring Projects Issues
Spring Projects Issues
**[bschoenmaeckers](https://jira.spring.io/secure/ViewProfile.jspa?name=JIRAUSER49728)** commented duplicate of [DATAREST-1524](https://jira.spring.io/browse/DATAREST-1524)
**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented What you describe already works (and has for quite a while even, so it should work in current Ingalls releases) if you actually turn the method you...
**[Ben Madore](https://jira.spring.io/secure/ViewProfile.jspa?name=madorb2)** commented Good point on the `default` keyword, i was trying to simplify our actual code into a more general case, and mistakenly left off the intended default. The...
**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented I am not a Kotlin expert, but are you sure the latter method is actually discoverable as default method? In the 1.x branch we use [this piece...
**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented [Mark Paluch](https://jira.spring.io/secure/ViewProfile.jspa?name=mp911de) might have an opinion on this one as well ;)
**[Ben Madore](https://jira.spring.io/secure/ViewProfile.jspa?name=madorb2)** commented So... I did a bit more digging, and yep, you're right, it's a kotlin problem. They dont' actually generate default interface methods they generate static methods... even...
**[Ben Madore](https://jira.spring.io/secure/ViewProfile.jspa?name=madorb2)** commented Not sure if there's an easy way to extend your `isDefaultMethod()` check to account for that, assuming not, might be something worth calling out in any new...
**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented If I understand the referenced ticket correctly, it's not even static methods but an interface method plus some method on a default implementation. I'll need to resort...
**[Ben Madore](https://jira.spring.io/secure/ViewProfile.jspa?name=madorb2)** commented Yes, you're right, sounds like they generate an interface and a default impl (which isn't visible to java-side, so they always have to implement the "default" method)....
**[Mark Paluch](https://jira.spring.io/secure/ViewProfile.jspa?name=mp911de)** commented That's correct, Kotlin generates a regular interface method. Consider following Kotlin interface declaration: ``` interface KotlinUserRepository : Repository { fun findById(username: String): User fun search(username: String) =...