Skip to content

Commit 524f90e

Browse files
committed
chore: Add platform dependenent for runtime
1 parent 9954a2f commit 524f90e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/nativeimage/GrpcNettyFeature.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ private static void loadGrpcNettyClasses(BeforeAnalysisAccess access) {
105105
access, "io.grpc.netty.shaded.io.grpc.netty.ProtocolNegotiators$GrpcNegotiationHandler");
106106
registerClassForReflection(
107107
access, "io.grpc.netty.shaded.io.netty.channel.ChannelHandlerMask");
108-
registerClassForReflection(
109-
access, "io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent");
110108

111109
// Epoll Libraries
112110
registerClassForReflection(access, "io.grpc.netty.shaded.io.netty.channel.epoll.Epoll");

gax-java/gax-grpc/src/main/resources/META-INF/native-image/com.google.api/gax-grpc/native-image.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Args=--add-opens=java.base/java.time=ALL-UNNAMED \
2+
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED \
23
--initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.ssl.OpenSsl,\
34
io.grpc.netty.shaded.io.netty.internal.tcnative.SSL,\
45
io.grpc.netty.shaded.io.netty.internal.tcnative.CertificateVerifier,\
@@ -10,5 +11,6 @@ Args=--add-opens=java.base/java.time=ALL-UNNAMED \
1011
io.grpc.netty.shaded.io.netty.channel.unix,\
1112
io.grpc.netty.shaded.io.netty.handler.ssl,\
1213
io.grpc.internal.RetriableStream,\
14+
io.grpc.netty.shaded.io.netty.util.internal,\
1315
io.grpc.netty.shaded.io.netty
1416
--features=com.google.api.gax.grpc.nativeimage.GrpcNettyFeature

0 commit comments

Comments
 (0)