Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-6450

Kotlin: Inherited platform declarations clash

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: None
    • Component/s: cache, spring
    • Labels:
      None
    • Environment:

      OS: macOS 10.12
      Java: 1.8.0_112-b16
      Kotlin: 1.1.4-3

      org.apache.ignite:ignite-spring-data:2.2.0
      org.springframework.data:spring-data-commons:1.13.1.RELEASE -> 2.0.0.RC3

      Description

      I am trying Spring Data and Ignite. My repository interface is below

      ```
      @RepositoryConfig(cacheName = "QuoteRequest")
      interface QuoteRequestRepository : IgniteRepository<QuoteRequest, Int>
      ```

      The code works for spring-data-commons:1.13.1.RELEASE. But it doesn't work for 2.0.0.RC3. The error message is below

      ```
      Error:(9, 11) Kotlin: Inherited platform declarations clash: The following declarations have the same JVM signature (deleteAll(Ljava/lang/Iterable;)V):
      fun deleteAll(p0: (Mutable)Iterable<QuoteRequest!>!): Unit defined in repository.QuoteRequestRepository
      fun deleteAll(p0: (Mutable)Iterable<Int!>!): Unit defined in repository.QuoteRequestRepository
      ```

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              redtankd redtank
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: