The GitHub Actions job "Licensing - RAT Report" on grails-intellij-plugin.git/where-query-criteria-delegate has succeeded. Run started by GitHub user jdaugherty (triggered by jdaugherty).
Head commit for run: 32bb169466a1f8ad82b633d9f0c7cf4c3a66bd18 / James Daugherty <[email protected]> Resolve DetachedCriteria methods inside GORM where queries >From GORM 4 on, where queries on a domain class come from the GormEntity trait, and every GORM from 6.1 to Apache 8 declares where, whereAny, whereLazy, find and findAll(Closure) without @DelegatesTo. GORM runs the closure against a DetachedCriteria of the domain class, delegate first (GormStaticApi#where), but the IDE saw no delegate at all, so setAlias, eq, or and the other criteria methods neither resolved nor completed in Person.where { }, and @CompileStatic code reported them as errors. DetachedCriteriaDelegatesToProvider now gives those closures a DetachedCriteria<Domain> delegate, DELEGATE_FIRST. Below GORM 4 the where methods are light dynamic methods whose closures already get the criteria methods from DetachedCriteriaClosureMemberProvider, so they are left alone. The where query detection WhereQueryClosureMemberContributor used moves to DetachedCriteriaUtil so both share it. The GormWhereQueryTest stubs declared @DelegatesTo(DetachedCriteria) on GormEntity, which real GORM never did and which hid this; they now match the GORM signatures. Report URL: https://github.com/apache/grails-intellij-plugin/actions/runs/37367391029 With regards, GitHub Actions via GitBox
