Giter Club home page Giter Club logo

Comments (4)

jamesbassett avatar jamesbassett commented on May 26, 2024 1

Ah damn, ok I'll take a look. Can you confirm you're using the latest version i.e. 2.0.0-rc.1?
I'm just about to start updating our 50 odd APIs to Spring Boot 2 so this will bite me as well!

from kotlin-jpa-specification-dsl.

jamesbassett avatar jamesbassett commented on May 26, 2024

@kimyoon21 Are you using the latest version (https://github.com/consoleau/kotlin-jpa-specification-dsl/releases/tag/v2.0.0-rc.1)

If not, are you able to reproduce in this projects tests? That compilation error looks like breaking in your own code (package is app.foodin.entity.common)

from kotlin-jpa-specification-dsl.

medj avatar medj commented on May 26, 2024

Hi James,

Same error here.

Using
kotlinVersion = "1.3.50"
springBootVersion = "2.2.2.RELEASE"

Thanks

from kotlin-jpa-specification-dsl.

Shinjaewon avatar Shinjaewon commented on May 26, 2024
Type inference failed: inline fun <reified T> combineSpecification(specs: Iterable<Specification<T#1 (type parameter of app.foodin.entity.common.combineSpecification)>?>, operation: Specification<T#1>.(Specification<T#1>) -> Specification<T#1>): Specification<T#1>
cannot be applied to
(Iterable<Specification<T#2 (type parameter of app.foodin.entity.common.and)>?>,KFunction2<Specification<T#2>, @ParameterName Specification<T#2>, Specification<T#2>>)

When I build it, this error occurs.
I am using Kotlin 1.3.61 and spring boot 2.2.4

inline fun <reified T> combineSpecification(specs: Iterable<Specification<T>?>,
                                            operation: Specification<T>.(Specification<T>?) -> Specification<T>?): Specification<T> {
    return specs.filterNotNull().fold(emptySpecification()) { existing, new -> existing.operation(new)!! }
}

from kotlin-jpa-specification-dsl.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.