Delay initialization of io.netty.handler.codec.compression.BrotliDecoder to runtime (#11428)
Motivation: Including codec-http in the project and building a native-image out of it using a GraalVM 21.2 nightly can result in a failure. Modification: By delaying the initialization of `io.netty.handler.codec.compression.BrotliDecoder` to runtime, native-image will not try to eagerly initialize the class during the image build, avoiding the build failure described in the issue. Result: Fixes #11427
This commit is contained in:
parent
750d23583c
commit
bc206ff173
@ -13,4 +13,4 @@
|
||||
# under the License.
|
||||
|
||||
Args = --initialize-at-build-time=io.netty \
|
||||
--initialize-at-run-time=io.netty.handler.codec.http.HttpObjectEncoder,io.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder,io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder
|
||||
--initialize-at-run-time=io.netty.handler.codec.http.HttpObjectEncoder,io.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder,io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder,io.netty.handler.codec.compression.BrotliDecoder
|
||||
|
Loading…
Reference in New Issue
Block a user