Hi, I'm trying the K2 with our production app and ...
# k2-adopters
k
Hi, I'm trying the K2 with our production app and I'm struggling with
Copy code
Unsupported compile-time value BLOCK type=javax.persistence.QueryHint origin=ARGUMENTS_REORDERING_FOR_CALL
Is there any easy fix for that?
d
Could you please attach example of code on which you found this failure? I guess it is a constant val or since annotation
k
Copy code
interface Repository : JpaSpecificationExecutor<Entity> {

    @QueryHints(value = [QueryHint(name = FETCH_SIZE, value = "1000"), QueryHint(name = READ_ONLY, value = "true")])
    @EntityGraph(attributePaths = ["attribute1", "attribute2"])
    fun streamAllByValidToIsGreaterThanEqual(today: LocalDate): Stream<Entity>
}
d
This is a know issue which is already fixed Fix will be available in 1.9.0-Beta
k
thank you!
d
If you want to check the compilation of your project with K2 you can just comment this annotation for now
Hm, that's strange Could you please report an issue? kotl.in/issue
k
sure thing 🙂