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

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new 6715e92361 Fixes #7274. Remove the TCCL workaround from 
MockBackendUtils
6715e92361 is described below

commit 6715e923612b9183db391f60f8730c3923fde771
Author: Jiří Ondrušek <[email protected]>
AuthorDate: Wed Oct 7 14:29:46 2026 +0200

    Fixes #7274. Remove the TCCL workaround from MockBackendUtils
    
    The context class loader switch was added with the Quarkus 3.22.0.CR1
    upgrade. The regression behind it (quarkusio/quarkus#47419) is fixed
    since Quarkus 3.22.0, and the other #7274 workarounds were reverted in 
#7292.
    
    Co-authored-by: jiriOndrusek-agent <[email protected]>
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .../camel/quarkus/test/mock/backend/MockBackendUtils.java    | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git 
a/integration-tests-support/test-support/src/main/java/org/apache/camel/quarkus/test/mock/backend/MockBackendUtils.java
 
b/integration-tests-support/test-support/src/main/java/org/apache/camel/quarkus/test/mock/backend/MockBackendUtils.java
index b4d378a8bc..6829413055 100644
--- 
a/integration-tests-support/test-support/src/main/java/org/apache/camel/quarkus/test/mock/backend/MockBackendUtils.java
+++ 
b/integration-tests-support/test-support/src/main/java/org/apache/camel/quarkus/test/mock/backend/MockBackendUtils.java
@@ -50,14 +50,8 @@ public class MockBackendUtils {
     }
 
     static boolean mockBackendStarted() {
-        ClassLoader origTCCL = Thread.currentThread().getContextClassLoader();
-        try {
-            
Thread.currentThread().setContextClassLoader(MockBackendUtils.class.getClassLoader());
-            return ConfigProvider.getConfig()
-                    .getOptionalValue("camel.quarkus.start-mock-backend", 
Boolean.class)
-                    .orElse(Boolean.TRUE);
-        } finally {
-            Thread.currentThread().setContextClassLoader(origTCCL);
-        }
+        return ConfigProvider.getConfig()
+                .getOptionalValue("camel.quarkus.start-mock-backend", 
Boolean.class)
+                .orElse(Boolean.TRUE);
     }
 }

Reply via email to