Skip to content

TCK: Wire where-query AST transformation for criteria test suites #16810

Closed

Description

@borinquenkid

Split from monolithic audit #16674 (finding F25).

Problem Description

The GORM TCK test sources are currently compiled without the where-query AST transformation. As a result, tests written using where-query syntax (such as operator overloading or property references like WqFoo.where { bar == null }) run untransformed Groovy code. For example, comparing a PropertyReference against null returns a truthy/falsy object evaluation rather than constructing the criteria tree, which can cause tests to pass vacuously without actually exercising the criteria translation.

Expected Behavior

Ensure the Gradle compilation of the TCK modules properly applies the GORM where-query AST transformations so that all test assertions validate real transformed criteria execution.

Activity

  1. borinquenkid commented on Nov 2, 2026

    @borinquenkid
    MemberAuthor

    Checked on 8.0.x: the TCK is compiled with the where-query transformation (grails-datamapping-core is on its compile classpath and the compiled closure calls isNull for 'bar == null'), and WhereQueryIssueVerificationSpec already fails without it. #16825 adds WhereTransformAppliedSpec, which reads the criteria a where query holds, so a lost transformation fails by name in every datastore module. No build change was needed.

  2. added a commit that references this issue on Nov 7, 2026
    0a3f119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions