Uploaded image for project: 'Spring Data for Apache Cassandra'
  1. Spring Data for Apache Cassandra
  2. DATACASS-797

@Consistency annotation results in Kotlin compilation error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Works as Designed
    • Affects Version/s: 3.0.3 (Neumann SR3)
    • Fix Version/s: None
    • Component/s: Kotlin
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Compilation of a Kotlin function, that is annotated with @Consistency, results in compilation error "An annotation argument must be a compile-time constant". Note that fhis feature worked well in spring-data-cassandra-2.1.X.

      @Consistency(DefaultConsistencyLevel.QUORUM)
      fun doSomething()
      

      The equivalent Java code works just fine:

      @Consistency(DefaultConsistencyLevel.QUORUM)
      public void doSomething();
      

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            slacker Gautam Jolly
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 21 weeks, 2 days ago