You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by bo...@apache.org on 2026/06/18 23:28:11 UTC

(grails-core) 12/23: Stack @AutoCleanup and @Shared annotations on separate lines in TransactionalWithinReadOnlySpec

This is an automated email from the ASF dual-hosted git repository.

borinquenkid pushed a commit to branch 8.0.x-hibernate7
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit e577e2227a05692e9f7cbf36ca18b77d3237c26c
Author: Walter Duque de Estrada <wb...@mac.com>
AuthorDate: Thu Jun 18 17:49:58 2026 -0500

    Stack @AutoCleanup and @Shared annotations on separate lines in TransactionalWithinReadOnlySpec
    
    Co-Authored-By: Claude Sonnet 4.6 <no...@anthropic.com>
---
 .../grails/gorm/tests/txs/TransactionalWithinReadOnlySpec.groovy       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/grails-data-hibernate5/core/src/test/groovy/grails/gorm/tests/txs/TransactionalWithinReadOnlySpec.groovy b/grails-data-hibernate5/core/src/test/groovy/grails/gorm/tests/txs/TransactionalWithinReadOnlySpec.groovy
index 2bd8802780..5109844bda 100644
--- a/grails-data-hibernate5/core/src/test/groovy/grails/gorm/tests/txs/TransactionalWithinReadOnlySpec.groovy
+++ b/grails-data-hibernate5/core/src/test/groovy/grails/gorm/tests/txs/TransactionalWithinReadOnlySpec.groovy
@@ -34,7 +34,8 @@ import spock.lang.Specification
 class TransactionalWithinReadOnlySpec extends Specification {
 
     @AutoCleanup
-    @Shared HibernateDatastore datastore = new HibernateDatastore(Product, Attribute)
+    @Shared
+    HibernateDatastore datastore = new HibernateDatastore(Product, Attribute)
 
 
     void "test transaction status"() {