zakkak commented on issue #4512: URL: https://github.com/apache/camel-quarkus/issues/4512#issuecomment-1425501325
> I tried to add a subsitution on `org.apache.hc.client5.http.entity.BrotliInputStreamFactory` but the native building throws Yes, unfortunately in order to substitute a class the class needs to be loaded in its original form. So you need a way to avoid loading the class in the first place instead. One would expect that GraalVM would be able to (which it does) see that `BrotliInputStreamFactory` is never reached in this case and not load the class. Unfortunately though due to https://github.com/oracle/graal/issues/4652 this is not happening. Your two options in this case seem to be: 1. Substitute the constructor of `org.apache.hc.client5.http.impl.classic.ContentCompressionExec` to remove the reference to `BrotliInputStreamFactory`. 2. Load brotli as a non-optional dependency as you already did. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
