You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2026/10/16 16:49:17 UTC
(grails-core) branch 8.0.x updated (a2f8c0ab59 -> 38216edf7b)
This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a change to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
from a2f8c0ab59 Merge pull request #16654 from ruthst00/fix/16632-unauthenticated-request
add 41cea2f0a4 fix: create proxies for Groovy entities whose trait declares default values
add 776c6d948c fix: keep HibernateProxy visible on the Groovy proxy wrapper and fail fast in postInstantiate
add 72c44111e5 test: exercise the built proxy and the lazy association for trait default values
add 49fa7e809e test: cover the shared ByteBuddyState wiring in GrailsBytecodeProviderSpec
add 87a3f936e5 fix: reuse the Groovy proxy wrapper per entity and class loader on Hibernate 5
add 0e9dc2cbae fix: deserialize Groovy-aware proxies through the Grails proxy factory
add c4803120b2 test: cover trait default values and proxy serialization in the groovy-proxy apps
add c032daca86 test: load the deserialized book in the groovy-proxy apps and drop an inert proxy setting
new 38216edf7b Merge pull request #16625 from MartinJesusDev/fix/16600-trait-default-values-8.0.x
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
grails-data-hibernate5/core/build.gradle | 4 +
.../proxy/ByteBuddyGroovyInterceptor.java | 23 ++
.../proxy/ByteBuddyGroovyProxyFactory.java | 30 ++-
.../hibernate/proxy/GroovyProxyClassBuilder.java | 115 ++++++++++
.../proxy/GroovyProxyMetaClassDispatcher.java | 57 +++++
.../hibernate/proxy/SerializableGroovyProxy.java | 126 +++++++++++
.../TraitInitializerProxySpec.groovy | 232 +++++++++++++++++++++
.../proxy/ByteBuddyGroovyProxyFactorySpec.groovy | 175 ++++++++++++++++
.../proxy/GroovyProxyClassBuilderSpec.groovy | 109 ++++++++++
.../GroovyProxyMetaClassDispatcherSpec.groovy | 36 ++--
.../proxy/SerializableGroovyProxySpec.groovy | 111 ++++++++++
.../proxy/ByteBuddyGroovyInterceptor.java | 24 +++
.../proxy/ByteBuddyGroovyProxyFactory.java | 44 ++--
.../hibernate/proxy/GrailsBytecodeProvider.java | 10 +-
.../hibernate/proxy/GrailsProxyFactoryFactory.java | 2 +-
.../hibernate/proxy/GroovyProxyClassBuilder.java | 93 +++++++++
.../proxy/GroovyProxyMetaClassDispatcher.java | 56 +++++
.../hibernate/proxy/SerializableGroovyProxy.java | 146 +++++++++++++
.../TraitInitializerProxySpec.groovy | 232 +++++++++++++++++++++
.../proxy/ByteBuddyGroovyInterceptorSpec.groovy | 28 +++
.../proxy/ByteBuddyGroovyProxyFactorySpec.groovy | 152 ++++++++++++--
.../proxy/GrailsBytecodeProviderSpec.groovy | 47 +++++
.../proxy/GroovyProxyClassBuilderSpec.groovy | 107 ++++++++++
.../GroovyProxyMetaClassDispatcherSpec.groovy} | 36 ++--
.../proxy/SerializableGroovyProxySpec.groovy | 112 ++++++++++
.../grails-hibernate-groovy-proxy/build.gradle | 1 +
.../grails-app/conf/application.yml | 4 +
.../grails-app/domain/example}/Book.groovy | 11 +-
.../grails-app/domain/example/Loan.groovy} | 13 +-
.../example/TraitDefaultValuesProxySpec.groovy | 189 +++++++++++++++++
.../src/main/groovy/example/Auditable.groovy} | 14 +-
.../grails-hibernate-groovy-proxy/build.gradle | 1 +
.../grails-app/conf/application.yml | 5 +-
.../grails-app/domain/example}/Book.groovy | 11 +-
.../grails-app/domain/example/Loan.groovy} | 13 +-
.../example/TraitDefaultValuesProxySpec.groovy | 189 +++++++++++++++++
.../src/main/groovy/example/Auditable.groovy} | 14 +-
37 files changed, 2447 insertions(+), 125 deletions(-)
create mode 100644 grails-data-hibernate5/core/src/main/groovy/org/grails/orm/hibernate/proxy/GroovyProxyClassBuilder.java
create mode 100644 grails-data-hibernate5/core/src/main/groovy/org/grails/orm/hibernate/proxy/GroovyProxyMetaClassDispatcher.java
create mode 100644 grails-data-hibernate5/core/src/main/groovy/org/grails/orm/hibernate/proxy/SerializableGroovyProxy.java
create mode 100644 grails-data-hibernate5/core/src/test/groovy/grails/gorm/tests/proxy/traitinitializer/TraitInitializerProxySpec.groovy
create mode 100644 grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/proxy/ByteBuddyGroovyProxyFactorySpec.groovy
create mode 100644 grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/proxy/GroovyProxyClassBuilderSpec.groovy
copy grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/cfg/JoinTableSpec.groovy => grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/proxy/GroovyProxyMetaClassDispatcherSpec.groovy (52%)
create mode 100644 grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/proxy/SerializableGroovyProxySpec.groovy
create mode 100644 grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/proxy/GroovyProxyClassBuilder.java
create mode 100644 grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/proxy/GroovyProxyMetaClassDispatcher.java
create mode 100644 grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/proxy/SerializableGroovyProxy.java
create mode 100644 grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/proxy/traitinitializer/TraitInitializerProxySpec.groovy
create mode 100644 grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/proxy/GroovyProxyClassBuilderSpec.groovy
copy grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/{cfg/JoinTableSpec.groovy => proxy/GroovyProxyMetaClassDispatcherSpec.groovy} (52%)
create mode 100644 grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/proxy/SerializableGroovyProxySpec.groovy
copy grails-test-examples/{async-events-pubsub-demo/grails-app/domain/pubsub/demo => hibernate5/grails-hibernate-groovy-proxy/grails-app/domain/example}/Book.groovy (82%)
copy grails-test-examples/{hibernate7/async-events-pubsub-demo/grails-app/domain/pubsub/demo/Author.groovy => hibernate5/grails-hibernate-groovy-proxy/grails-app/domain/example/Loan.groovy} (80%)
create mode 100644 grails-test-examples/hibernate5/grails-hibernate-groovy-proxy/src/integration-test/groovy/example/TraitDefaultValuesProxySpec.groovy
copy grails-test-examples/{mongodb/springboot/src/main/groovy/example/Book.groovy => hibernate5/grails-hibernate-groovy-proxy/src/main/groovy/example/Auditable.groovy} (74%)
copy grails-test-examples/{async-events-pubsub-demo/grails-app/domain/pubsub/demo => hibernate7/grails-hibernate-groovy-proxy/grails-app/domain/example}/Book.groovy (82%)
copy grails-test-examples/hibernate7/{async-events-pubsub-demo/grails-app/domain/pubsub/demo/Author.groovy => grails-hibernate-groovy-proxy/grails-app/domain/example/Loan.groovy} (80%)
create mode 100644 grails-test-examples/hibernate7/grails-hibernate-groovy-proxy/src/integration-test/groovy/example/TraitDefaultValuesProxySpec.groovy
copy grails-test-examples/{mongodb/springboot/src/main/groovy/example/Book.groovy => hibernate7/grails-hibernate-groovy-proxy/src/main/groovy/example/Auditable.groovy} (74%)
(grails-core) 01/01: Merge pull request #16625 from MartinJesusDev/fix/16600-trait-default-values-8.0.x
Posted by jd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 38216edf7b25b5b2216bcea6409b711b569168ed
Merge: a2f8c0ab59 c032daca86
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Fri Oct 16 12:49:12 2026 -0400
Merge pull request #16625 from MartinJesusDev/fix/16600-trait-default-values-8.0.x
fix: create proxies for Groovy entities whose trait declares default values
grails-data-hibernate5/core/build.gradle | 4 +
.../proxy/ByteBuddyGroovyInterceptor.java | 23 ++
.../proxy/ByteBuddyGroovyProxyFactory.java | 30 ++-
.../hibernate/proxy/GroovyProxyClassBuilder.java | 115 ++++++++++
.../proxy/GroovyProxyMetaClassDispatcher.java | 57 +++++
.../hibernate/proxy/SerializableGroovyProxy.java | 126 +++++++++++
.../TraitInitializerProxySpec.groovy | 232 +++++++++++++++++++++
.../proxy/ByteBuddyGroovyProxyFactorySpec.groovy | 175 ++++++++++++++++
.../proxy/GroovyProxyClassBuilderSpec.groovy | 109 ++++++++++
.../GroovyProxyMetaClassDispatcherSpec.groovy | 47 +++++
.../proxy/SerializableGroovyProxySpec.groovy | 111 ++++++++++
.../proxy/ByteBuddyGroovyInterceptor.java | 24 +++
.../proxy/ByteBuddyGroovyProxyFactory.java | 44 ++--
.../hibernate/proxy/GrailsBytecodeProvider.java | 10 +-
.../hibernate/proxy/GrailsProxyFactoryFactory.java | 2 +-
.../hibernate/proxy/GroovyProxyClassBuilder.java | 93 +++++++++
.../proxy/GroovyProxyMetaClassDispatcher.java | 56 +++++
.../hibernate/proxy/SerializableGroovyProxy.java | 146 +++++++++++++
.../TraitInitializerProxySpec.groovy | 232 +++++++++++++++++++++
.../proxy/ByteBuddyGroovyInterceptorSpec.groovy | 28 +++
.../proxy/ByteBuddyGroovyProxyFactorySpec.groovy | 152 ++++++++++++--
.../proxy/GrailsBytecodeProviderSpec.groovy | 47 +++++
.../proxy/GroovyProxyClassBuilderSpec.groovy | 107 ++++++++++
.../GroovyProxyMetaClassDispatcherSpec.groovy | 47 +++++
.../proxy/SerializableGroovyProxySpec.groovy | 112 ++++++++++
.../grails-hibernate-groovy-proxy/build.gradle | 1 +
.../grails-app/conf/application.yml | 4 +
.../grails-app/domain/example/Book.groovy | 32 +++
.../grails-app/domain/example/Loan.groovy | 33 +++
.../example/TraitDefaultValuesProxySpec.groovy | 189 +++++++++++++++++
.../src/main/groovy/example/Auditable.groovy | 29 +++
.../grails-hibernate-groovy-proxy/build.gradle | 1 +
.../grails-app/conf/application.yml | 5 +-
.../grails-app/domain/example/Book.groovy | 32 +++
.../grails-app/domain/example/Loan.groovy | 33 +++
.../example/TraitDefaultValuesProxySpec.groovy | 189 +++++++++++++++++
.../src/main/groovy/example/Auditable.groovy | 29 +++
37 files changed, 2659 insertions(+), 47 deletions(-)