-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add native image reflect-config.json to gax-grpc (#1251)
* fix: Add native image reflect-config.json to gax-grpc * fix: Place all netty reflect configurations in GrpcNettyFeature.java * fix: format * ci: downstream test graalvm native image compilation on java-kms and java-os-login * fix: register full classes for reflection * fix: format * fix: add java17-required add-opens=java.base config to native-image.properties * fix: change add-opens argument to java.base/java.time
- Loading branch information
1 parent
2dae391
commit ff2d118
Showing
4 changed files
with
316 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
.../src/main/resources/META-INF/native-image/com.google.api/gax-grpc/native-image.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
287 changes: 287 additions & 0 deletions
287
...grpc/src/main/resources/META-INF/native-image/com.google.api/gax-grpc/reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,287 @@ | ||
[ | ||
{ | ||
"name": "[B" | ||
}, | ||
{ | ||
"name": "com.google.auth.Credentials", | ||
"allDeclaredFields": true | ||
}, | ||
{ | ||
"name": "com.google.auth.appengine.AppEngineCredentials" | ||
}, | ||
{ | ||
"name": "com.google.auth.oauth2.AccessToken", | ||
"allDeclaredFields": true | ||
}, | ||
{ | ||
"name": "com.google.auth.oauth2.GoogleCredentials", | ||
"allDeclaredFields": true, | ||
"methods": [ | ||
{ | ||
"name": "getQuotaProjectId", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "com.google.auth.oauth2.OAuth2Credentials", | ||
"allDeclaredFields": true | ||
}, | ||
{ | ||
"name": "com.google.auth.oauth2.OAuth2Credentials$OAuthValue", | ||
"allDeclaredFields": true | ||
}, | ||
{ | ||
"name": "com.google.auth.oauth2.UserCredentials", | ||
"allDeclaredFields": true | ||
}, | ||
{ | ||
"name": "com.google.protobuf.ExtensionRegistry", | ||
"methods": [ | ||
{ | ||
"name": "getEmptyRegistry", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "com.sun.crypto.provider.TlsMasterSecretGenerator", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "com.sun.jndi.dns.DnsContextFactory" | ||
}, | ||
{ | ||
"name": "io.grpc.internal.DnsNameResolverProvider" | ||
}, | ||
{ | ||
"name": "io.grpc.internal.JndiResourceResolverFactory", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "io.grpc.internal.PickFirstLoadBalancerProvider" | ||
}, | ||
{ | ||
"name": "io.grpc.util.SecretRoundRobinLoadBalancerProvider$Provider", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "java.io.FileDescriptor" | ||
}, | ||
{ | ||
"name": "java.lang.Exception" | ||
}, | ||
{ | ||
"name": "java.lang.IllegalArgumentException" | ||
}, | ||
{ | ||
"name": "java.lang.NullPointerException" | ||
}, | ||
{ | ||
"name": "java.lang.Object", | ||
"allDeclaredFields": true, | ||
"queryAllDeclaredMethods": true | ||
}, | ||
{ | ||
"name": "java.lang.OutOfMemoryError" | ||
}, | ||
{ | ||
"name": "java.lang.String" | ||
}, | ||
{ | ||
"name": "java.lang.Throwable", | ||
"methods": [ | ||
{ | ||
"name": "addSuppressed", | ||
"parameterTypes": [ | ||
"java.lang.Throwable" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "java.nio.Bits", | ||
"fields": [ | ||
{ | ||
"name": "UNALIGNED" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "java.nio.Buffer", | ||
"fields": [ | ||
{ | ||
"name": "address" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "java.nio.ByteBuffer", | ||
"methods": [ | ||
{ | ||
"name": "alignedSlice", | ||
"parameterTypes": [ | ||
"int" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "java.nio.DirectByteBuffer", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [ | ||
"long", | ||
"int" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "java.nio.channels.FileChannel" | ||
}, | ||
{ | ||
"name": "java.security.AlgorithmParametersSpi" | ||
}, | ||
{ | ||
"name": "java.security.KeyStoreSpi" | ||
}, | ||
{ | ||
"name": "java.security.MessageDigestSpi" | ||
}, | ||
{ | ||
"name": "java.security.SecureRandomParameters" | ||
}, | ||
{ | ||
"name": "java.sql.Date" | ||
}, | ||
{ | ||
"name": "java.time.Duration", | ||
"allDeclaredFields": true | ||
}, | ||
{ | ||
"name": "java.util.AbstractMap", | ||
"allDeclaredFields": true | ||
}, | ||
{ | ||
"name": "java.util.concurrent.atomic.LongAdder", | ||
"queryAllPublicConstructors": true, | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
}, | ||
{ | ||
"name": "add", | ||
"parameterTypes": [ | ||
"long" | ||
] | ||
}, | ||
{ | ||
"name": "sum", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "javax.naming.directory.InitialDirContext" | ||
}, | ||
{ | ||
"name": "javax.security.auth.x500.X500Principal", | ||
"fields": [ | ||
{ | ||
"name": "thisX500Name" | ||
} | ||
], | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [ | ||
"sun.security.x509.X500Name" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "jdk.internal.misc.Unsafe", | ||
"methods": [ | ||
{ | ||
"name": "getUnsafe", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sun.misc.Unsafe", | ||
"fields": [ | ||
{ | ||
"name": "theUnsafe" | ||
} | ||
], | ||
"methods": [ | ||
{ | ||
"name": "copyMemory", | ||
"parameterTypes": [ | ||
"java.lang.Object", | ||
"long", | ||
"java.lang.Object", | ||
"long", | ||
"long" | ||
] | ||
}, | ||
{ | ||
"name": "getAndAddLong", | ||
"parameterTypes": [ | ||
"java.lang.Object", | ||
"long", | ||
"long" | ||
] | ||
}, | ||
{ | ||
"name": "getAndSetObject", | ||
"parameterTypes": [ | ||
"java.lang.Object", | ||
"long", | ||
"java.lang.Object" | ||
] | ||
}, | ||
{ | ||
"name": "invokeCleaner", | ||
"parameterTypes": [ | ||
"java.nio.ByteBuffer" | ||
] | ||
}, | ||
{ | ||
"name": "storeFence", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "sun.nio.ch.SelectorImpl", | ||
"fields": [ | ||
{ | ||
"name": "publicSelectedKeys" | ||
}, | ||
{ | ||
"name": "selectedKeys" | ||
} | ||
] | ||
} | ||
] |