The GitHub Actions job "CI" 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 
<[email protected]>
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/38278119366

With regards,
GitHub Actions via GitBox

Reply via email to