The GitHub Actions job "CI - Groovy Joint Validation Build" on 
grails-core.git/grails8-groovy5-sb4 has succeeded.
Run started by GitHub user jamesfredley (triggered by jamesfredley).

Head commit for run:
4ac7735e994f89951e0915b1e8cd8571445159f4 / James Fredley 
<[email protected]>
fix(test): drop generic argument from `instanceof List<FieldError>`

Groovy 5 enforces what the JVM has always enforced: generic type arguments
are erased at runtime, so `instanceof List<FieldError>` cannot be verified
and is now a compile-time error:

    DefaultGraphQLErrorsResponseHandlerSpec.groovy: 100:
    Cannot perform instanceof check against parameterized type List<FieldError>

This was the new fault-line surfaced by the previous commit unblocking the
`:grails-data-graphql-core:compileGroovy` step; the CI then proceeded into
`compileTestGroovy` and failed there.

Replaced the parameterized check with `instanceof List`. The element-type
intent is still expressed by the cast on the very next line
(`((List<FieldError>) errorsFetcher.get(mockObjectEnv)).size() == 1`)
which is what the test was actually asserting.

Verification

    .\gradlew :grails-data-graphql-core:compileTestGroovy   # BUILD SUCCESSFUL

Assisted-by: claude-code:claude-opus-4-7

Report URL: https://github.com/apache/grails-core/actions/runs/26302229535

With regards,
GitHub Actions via GitBox

Reply via email to