This is an automated email from the ASF dual-hosted git repository. jdaugherty pushed a commit to branch grails-geb in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit d1cbbf1b385b8f6547012143d4969f9469406baa Author: James Daugherty <[email protected]> AuthorDate: Mon Apr 21 11:11:50 2025 -0400 Restore domain inheritance to fix test --- .../plugin/formfields/DomainClassPropertyAccessorSpec.groovy | 2 -- .../test/groovy/grails/plugin/formfields/mock/Person.groovy | 10 ++-------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/grails-fields/src/test/groovy/grails/plugin/formfields/DomainClassPropertyAccessorSpec.groovy b/grails-fields/src/test/groovy/grails/plugin/formfields/DomainClassPropertyAccessorSpec.groovy index d6ecae12e6..4074d3d60e 100644 --- a/grails-fields/src/test/groovy/grails/plugin/formfields/DomainClassPropertyAccessorSpec.groovy +++ b/grails-fields/src/test/groovy/grails/plugin/formfields/DomainClassPropertyAccessorSpec.groovy @@ -10,7 +10,6 @@ import org.spockframework.util.VersionNumber import org.springframework.beans.NotReadablePropertyException import spock.lang.IgnoreIf import spock.lang.Issue -import spock.lang.PendingFeature import spock.lang.Shared import spock.lang.Unroll import spock.util.environment.Jvm @@ -363,7 +362,6 @@ class DomainClassPropertyAccessorSpec extends BuildsAccessorFactory { "minor" | false // boolean properties are never considered required } - @PendingFeature(reason = 'until domain class inheritance works in Groovy 4') def 'the superclasses of #type.simpleName are #expected'() { given: def propertyAccessor = factory.accessorFor(type.getConstructor().newInstance(), path) diff --git a/grails-fields/src/test/groovy/grails/plugin/formfields/mock/Person.groovy b/grails-fields/src/test/groovy/grails/plugin/formfields/mock/Person.groovy index 57359dcb63..1f19a21745 100644 --- a/grails-fields/src/test/groovy/grails/plugin/formfields/mock/Person.groovy +++ b/grails-fields/src/test/groovy/grails/plugin/formfields/mock/Person.groovy @@ -4,19 +4,13 @@ import grails.gorm.annotation.AutoTimestamp import grails.persistence.Entity @Entity -class Cyborg extends HomoSapiens { +class Cyborg extends Person { @AutoTimestamp(AutoTimestamp.EventType.CREATED) Date created @AutoTimestamp Date modified } @Entity -class Person extends HomoSapiens {} - -/* - Workaround for problem with domain inheritance in Groovy 4. - (Superclasses cannot be Gorm entities). -*/ -class HomoSapiens { +class Person { Salutation salutation String name String password
