Ensure bottom-up semantics in resolveDefaultContextConfigurationAttributes()

Closes gh-31456
This commit is contained in:
Sam Brannen
2025-12-11 13:37:32 +01:00
parent 8916ee9f81
commit 1818161f58
4 changed files with 209 additions and 2 deletions
@@ -243,7 +243,7 @@ abstract class ContextLoaderUtils {
private static void resolveDefaultContextConfigurationAttributes(
List<ContextConfigurationAttributes> results, Class<?> testClass) {
results.add(0, new ContextConfigurationAttributes(testClass));
results.add(new ContextConfigurationAttributes(testClass));
Class<?> superclass = testClass.getSuperclass();
if (superclass != null && superclass != Object.class) {