https://kotlinlang.org logo
Title
k

kubele

04/14/2023, 6:04 PM
Hi, I'm trying the K2 with our production app and I'm struggling with
Unsupported compile-time value BLOCK type=javax.persistence.QueryHint origin=ARGUMENTS_REORDERING_FOR_CALL
Is there any easy fix for that?
d

dmitriy.novozhilov

04/14/2023, 6:15 PM
Could you please attach example of code on which you found this failure? I guess it is a constant val or since annotation
k

kubele

04/14/2023, 6:17 PM
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

dmitriy.novozhilov

04/14/2023, 6:19 PM
This is a know issue which is already fixed Fix will be available in 1.9.0-Beta
k

kubele

04/14/2023, 6:19 PM
thank you!
d

dmitriy.novozhilov

04/14/2023, 6:20 PM
If you want to check the compilation of your project with K2 you can just comment this annotation for now