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 5966025482 Fixes #9094. Substitute Brotli4jRuntime.available() when 
brotli4j is absent
5966025482 is described below

commit 5966025482d13b8e8015e6f34bf999b8459be4a9
Author: Jiří Ondrušek <[email protected]>
AuthorDate: Wed Sep 2 16:47:29 2026 +0200

    Fixes #9094. Substitute Brotli4jRuntime.available() when brotli4j is absent
    
    Co-authored-by: Claude Fable 5 <[email protected]>
---
 .../support/httpclient5/graal/BrotliSubstitutions.java       | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git 
a/extensions-support/httpclient5/runtime/src/main/java/org/apache/camel/quarkus/support/httpclient5/graal/BrotliSubstitutions.java
 
b/extensions-support/httpclient5/runtime/src/main/java/org/apache/camel/quarkus/support/httpclient5/graal/BrotliSubstitutions.java
index c18eb08dd8..d2829e91f2 100644
--- 
a/extensions-support/httpclient5/runtime/src/main/java/org/apache/camel/quarkus/support/httpclient5/graal/BrotliSubstitutions.java
+++ 
b/extensions-support/httpclient5/runtime/src/main/java/org/apache/camel/quarkus/support/httpclient5/graal/BrotliSubstitutions.java
@@ -46,3 +46,15 @@ final class SubstituteBrotliDecompressingEntity {
         return false;
     }
 }
+
+/*
+ * Cuts the reachability chain from ContentCompressionAsyncExec and 
ContentCodecRegistry to
+ * InflatingBrotliDataConsumer and BrotliCodecFactory, which reference 
brotli4j types directly.
+ */
+@TargetClass(className = "org.apache.hc.client5.http.impl.Brotli4jRuntime", 
onlyWith = { BrotliAbsentBooleanSupplier.class })
+final class SubstituteBrotli4jRuntime {
+    @Substitute
+    public static boolean available() {
+        return false;
+    }
+}

Reply via email to