-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LockingAndVersioningRepository's delete method clash with CrudRepository'delete method #84
Comments
I am not a Kotlin guy and haven't had an opportunity to try it yet. Although, I note it increasing popularity and buzz (at SpringOne this year). But all this means that I might need a bit of help with this one. Is it possible that you can provide a sample application that exhibits the problem? |
both, @lmtoo As a workaround you can override the delete method in your interface like this: interface DocumentRepository : CrudRepository<Document, UUID>, LockingAndVersioningRepository<Document, UUID> {
override fun delete(document: Document) {
}
} |
Thanks for the info @schocco that is helpful. I can certainly take a look at changing that return type for you both. |
- so tht downstream consumers dont see an erasure signature conflicts Fixes #84
Hi @lmtoo @schocco - this commit changes the signature of the
Would one of you mind verifying if this fixes the issue, or not. Many thanks. |
I think we have resolved this so I am going to close it. Please feel free to re-open if you find otherwise. |
I just tested with 1.0.0.M10 and can confirm that the issue is solved. |
Thanks @schocco. The confirmation is very much appreciated. |
- so tht downstream consumers dont see an erasure signature conflicts Fixes #84
I use kotlin defined an interface as follow:
@RepositoryRestResource(path = "documents", collectionResourceRel = "documents") interface DocumentRepository : JpaRepository<Document, String>, LockingAndVersioningRepository<Document, String>
but the compiler compilation fails :
Inherited platform declarations clash: The following declarations have the same JVM signature (delete(Ljava/lang/Object;)V) fun <S : Document!> delete(p0: S!): Unit defined in com.lubansoft.archives.document.DocumentRepository fun delete(p0: Document): Unit defined in com.lubansoft.archives.document.DocumentRepository
The text was updated successfully, but these errors were encountered: