This is an automated email from the ASF dual-hosted git repository. matrei pushed a commit to branch deprecate-for-removal in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit af51e74b9479cf9a2d6d72f9fc27ccdec88d4430 Author: Mattias Reichel <[email protected]> AuthorDate: Fri Feb 27 12:09:02 2026 +0100 deprecate: BeanPropertyAccessor.getBeanClass() Add for removal. --- .../main/groovy/grails/plugin/formfields/BeanPropertyAccessor.groovy | 2 +- .../groovy/grails/plugin/formfields/BeanPropertyAccessorImpl.groovy | 1 + .../grails/plugin/formfields/DelegatingBeanPropertyAccessorImpl.groovy | 2 +- .../main/groovy/grails/plugin/formfields/PropertyPathAccessor.groovy | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/grails-fields/src/main/groovy/grails/plugin/formfields/BeanPropertyAccessor.groovy b/grails-fields/src/main/groovy/grails/plugin/formfields/BeanPropertyAccessor.groovy index 04b52440a7..73f525f4aa 100644 --- a/grails-fields/src/main/groovy/grails/plugin/formfields/BeanPropertyAccessor.groovy +++ b/grails-fields/src/main/groovy/grails/plugin/formfields/BeanPropertyAccessor.groovy @@ -56,7 +56,7 @@ interface BeanPropertyAccessor { * @return the GORM domain type of `beanType`. This will be null if `beanType` is not a domain class. * @deprecated use {@link #getEntity} */ - @Deprecated + @Deprecated(forRemoval = true) GrailsDomainClass getBeanClass() /** diff --git a/grails-fields/src/main/groovy/grails/plugin/formfields/BeanPropertyAccessorImpl.groovy b/grails-fields/src/main/groovy/grails/plugin/formfields/BeanPropertyAccessorImpl.groovy index e84ab08a1a..88fe2ff578 100644 --- a/grails-fields/src/main/groovy/grails/plugin/formfields/BeanPropertyAccessorImpl.groovy +++ b/grails-fields/src/main/groovy/grails/plugin/formfields/BeanPropertyAccessorImpl.groovy @@ -47,6 +47,7 @@ class BeanPropertyAccessorImpl implements BeanPropertyAccessor { Object rootBean Class rootBeanType + @Deprecated(forRemoval = true) GrailsDomainClass beanClass Class beanType String pathFromRoot diff --git a/grails-fields/src/main/groovy/grails/plugin/formfields/DelegatingBeanPropertyAccessorImpl.groovy b/grails-fields/src/main/groovy/grails/plugin/formfields/DelegatingBeanPropertyAccessorImpl.groovy index b492c7aca7..509993faf5 100644 --- a/grails-fields/src/main/groovy/grails/plugin/formfields/DelegatingBeanPropertyAccessorImpl.groovy +++ b/grails-fields/src/main/groovy/grails/plugin/formfields/DelegatingBeanPropertyAccessorImpl.groovy @@ -75,7 +75,7 @@ class DelegatingBeanPropertyAccessorImpl implements BeanPropertyAccessor { } @Override - @Deprecated + @Deprecated(forRemoval = true) GrailsDomainClass getBeanClass() { throw new UnsupportedOperationException() } diff --git a/grails-fields/src/main/groovy/grails/plugin/formfields/PropertyPathAccessor.groovy b/grails-fields/src/main/groovy/grails/plugin/formfields/PropertyPathAccessor.groovy index 60802b4e4c..333e20236c 100644 --- a/grails-fields/src/main/groovy/grails/plugin/formfields/PropertyPathAccessor.groovy +++ b/grails-fields/src/main/groovy/grails/plugin/formfields/PropertyPathAccessor.groovy @@ -60,6 +60,7 @@ class PropertyPathAccessor implements BeanPropertyAccessor { Class getRootBeanType() { null } + @Deprecated(forRemoval = true) GrailsDomainClass getBeanClass() { null } PersistentEntity getEntity() { null }
