You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2026/06/16 21:13:57 UTC
(grails-core) branch grails8-groovy5-sb4 updated: test: cite GROOVY-12091 for the bounded generic trait workaround
This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a commit to branch grails8-groovy5-sb4
in repository https://gitbox.apache.org/repos/asf/grails-core.git
The following commit(s) were added to refs/heads/grails8-groovy5-sb4 by this push:
new ce6972092a test: cite GROOVY-12091 for the bounded generic trait workaround
ce6972092a is described below
commit ce6972092a7ca659742f9a74318d6d94af76fe29
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Tue Jun 16 17:13:02 2026 -0400
test: cite GROOVY-12091 for the bounded generic trait workaround
GROOVY-12091 (open) tracks the Groovy 5 regression where a bounded generic
trait property setter stays abstract in the implementing class. Reference the
ticket in the existing comment above the TestTrait workaround in
ClassPropertyFetcherTests so the unbounded `<T>` form is traceable upstream.
Assisted-by: claude-code:claude-4.8-opus
---
.../grails/datastore/mapping/reflect/ClassPropertyFetcherTests.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grails-datastore-core/src/test/groovy/org/grails/datastore/mapping/reflect/ClassPropertyFetcherTests.groovy b/grails-datastore-core/src/test/groovy/org/grails/datastore/mapping/reflect/ClassPropertyFetcherTests.groovy
index c75ce6ebb3..7f8e84d4fa 100644
--- a/grails-datastore-core/src/test/groovy/org/grails/datastore/mapping/reflect/ClassPropertyFetcherTests.groovy
+++ b/grails-datastore-core/src/test/groovy/org/grails/datastore/mapping/reflect/ClassPropertyFetcherTests.groovy
@@ -114,7 +114,7 @@ class ClassPropertyFetcherTests {
}
}
-// Groovy 5 still leaves the trait setter abstract when this type parameter is bounded with Serializable.
+// Groovy 5 still leaves the trait setter abstract when this type parameter is bounded with Serializable (GROOVY-12091, open).
// Keep the unbounded form until the upstream trait generics bug is fixed.
trait TestTrait<T> {
T from