diff --git a/test-framework/junit5-config/src/main/java/io/quarkus/test/config/TestConfigProviderResolver.java b/test-framework/junit5-config/src/main/java/io/quarkus/test/config/TestConfigProviderResolver.java index 9bda00bace7f1..13416d0ad087f 100644 --- a/test-framework/junit5-config/src/main/java/io/quarkus/test/config/TestConfigProviderResolver.java +++ b/test-framework/junit5-config/src/main/java/io/quarkus/test/config/TestConfigProviderResolver.java @@ -19,6 +19,8 @@ * classloader. */ public class TestConfigProviderResolver extends SmallRyeConfigProviderResolver { + + // Note that this class both *extends* and *consumes* SmallRyeConfigProviderResolver. Every method in SmallRyeConfigProviderResolver should be replicated here with a delegation to the instance variable, or there will be subtle and horrible bugs. private final SmallRyeConfigProviderResolver resolver; private final ClassLoader classLoader; private final Map configs; @@ -96,4 +98,9 @@ public void registerConfig(final Config config, final ClassLoader classLoader) { public void releaseConfig(final Config config) { resolver.releaseConfig(config); } + + @Override + public void releaseConfig(final ClassLoader classLoader) { + resolver.releaseConfig(classLoader); + } }