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

jdaugherty pushed a commit to branch inherittedDatabasecleanup
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 7353f08c5e72afaeb2ab9a4bc853435fcdd4113b
Author: James Daugherty <[email protected]>
AuthorDate: Tue Mar 17 23:24:52 2026 -0400

    make sure the DatabaseCleanup annotation is inherited
---
 .../org/apache/grails/testing/cleanup/core/DatabaseCleanup.groovy       | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/grails-testing-support-dbcleanup-core/src/main/groovy/org/apache/grails/testing/cleanup/core/DatabaseCleanup.groovy
 
b/grails-testing-support-dbcleanup-core/src/main/groovy/org/apache/grails/testing/cleanup/core/DatabaseCleanup.groovy
index 68c8ea2ba7..bbd56022e0 100644
--- 
a/grails-testing-support-dbcleanup-core/src/main/groovy/org/apache/grails/testing/cleanup/core/DatabaseCleanup.groovy
+++ 
b/grails-testing-support-dbcleanup-core/src/main/groovy/org/apache/grails/testing/cleanup/core/DatabaseCleanup.groovy
@@ -19,6 +19,7 @@
 package org.apache.grails.testing.cleanup.core
 
 import java.lang.annotation.ElementType
+import java.lang.annotation.Inherited
 import java.lang.annotation.Retention
 import java.lang.annotation.RetentionPolicy
 import java.lang.annotation.Target
@@ -81,6 +82,7 @@ import java.lang.annotation.Target
  * class MySpec extends Specification { ... }
  * </pre>
  */
+@Inherited
 @Retention(RetentionPolicy.RUNTIME)
 @Target([ElementType.TYPE, ElementType.METHOD])
 @interface DatabaseCleanup {

Reply via email to