Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit a9c93cd

Browse files
committed
Fix Netty native build failure
Closes gh-1388
1 parent 0e0dd46 commit a9c93cd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

spring-native-configuration/src/main/java/io/netty/NettyHints.java

+8-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
import io.netty.handler.codec.http2.CleartextHttp2ServerUpgradeHandler;
2727
import io.netty.handler.codec.http2.Http2ConnectionHandler;
2828
import io.netty.handler.codec.http2.Http2ServerUpgradeCodec;
29+
import io.netty.handler.ssl.OpenSslAsyncPrivateKeyMethod;
30+
import io.netty.handler.ssl.OpenSslPrivateKeyMethod;
31+
import io.netty.handler.ssl.ReferenceCountedOpenSslEngine;
2932
import io.netty.resolver.HostsFileEntriesResolver;
3033
import io.netty.util.internal.PlatformDependent;
3134

@@ -38,7 +41,7 @@
3841

3942
@NativeHint(trigger = DefaultChannelId.class, initialization = {
4043
@InitializationHint(initTime=InitializationTime.RUN,
41-
packageNames = "io.netty.channel.epoll",
44+
packageNames = { "io.netty.channel.epoll", "io.netty.internal.tcnative" },
4245
types = {
4346
DefaultChannelId.class,
4447
Socket.class,
@@ -48,7 +51,10 @@
4851
CleartextHttp2ServerUpgradeHandler.class,
4952
Http2ConnectionHandler.class,
5053
HostsFileEntriesResolver.class,
51-
BrotliDecoder.class
54+
BrotliDecoder.class,
55+
OpenSslPrivateKeyMethod.class,
56+
OpenSslAsyncPrivateKeyMethod.class,
57+
ReferenceCountedOpenSslEngine.class
5258
}, typeNames = {
5359
"io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder"
5460
})

0 commit comments

Comments
 (0)