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

Optional return type for Repositories returns Optional of resultset instead of Optional of Objectype

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.2 (Gosling SR2)
    • Fix Version/s: 1.5 M1 (Ingalls)
    • Component/s: Core
    • Labels:
      None

      Description

      In JAVA 8 when the return type of a repository call Optional<T>, the actual return type is Optional<ResultSet>

      Upon invoking Optional::get, I get a:
      java.lang.ClassCastException: com.datastax.driver.core.ArrayBackedResultSet$SinglePage cannot be cast to classType

      Class:
      AbstractCassandraQuery

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mp911de Mark Paluch
              Reporter:
              magster_magesh Magesh
              Last updater:
              Spring Issues Spring Issues
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

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