You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by GitBox <gi...@apache.org> on 2026/10/13 02:03:47 UTC
[GH] (grails-core/fix/16600-trait-default-values-8.0.x): Workflow run "Groovy Snapshot Canary Build" failed!
The GitHub Actions job "Groovy Snapshot Canary Build" on grails-core.git/fix/16600-trait-default-values-8.0.x has failed.
Run started by GitHub user MartinJesusDev (triggered by borinquenkid).
Head commit for run:
41cea2f0a4eae1272a60e6643fc2cf7843d1c412 / MartinJesusDev <26...@users.noreply.github.com>
fix: create proxies for Groovy entities whose trait declares default values
Groovy 3+ no longer marks the generated getMetaClass() as synthetic, so
Hibernate's synthetic-only ignore filter no longer excludes it from the
entity proxy. The proxy constructor runs before Hibernate assigns the
interceptor, so the intercepted getMetaClass() answers the stub value
(null) and the trait's $init$ fails with a NullPointerException while the
proxy is built.
Wrap the proxy class in a subclass whose getMetaClass() answers the
persistent class's MetaClass while the interceptor is not assigned yet
(the same answer GroovyProxyInterceptorLogic gives for an uninitialized
proxy). Non-Groovy entities keep the stock proxy class unchanged.
Refs #16600
Generated-by: OpenCode (DeepSeek V4.1 Flash)
Report URL: https://github.com/apache/grails-core/actions/runs/38278119318
With regards,
GitHub Actions via GitBox