-
Notifications
You must be signed in to change notification settings - Fork 104
feat: relocate Netty Native Image configurations from java-core to gax #1638
Conversation
6a0840e to
9b863be
Compare
| import org.graalvm.nativeimage.hosted.RuntimeReflection; | ||
|
|
||
| /** Internal class offering helper methods for registering methods/classes for reflection. */ | ||
| public class NativeImageUtils { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add annotation to indicate this is an internal API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, added the internal API annotation.
| } | ||
|
|
||
| /** Registers all the classes under the specified package for reflection. */ | ||
| public static void registerPackageForReflection(FeatureAccess access, String packageName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this as it's not used in gax.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, removed this method.
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| */ | ||
|
|
||
| package com.google.nativeimage; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To verify once again, @meltsufin @suztomo is this an acceptable package name? It looks like we have some classes under package com.google.api.gax.grpc and some under com.google in gax-grpc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should actually go into "com.google.api.gax.grpc.nativeimage".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay, corrected this. Thank you!
|
SonarCloud Quality Gate failed. |








This PR moves the Netty Native Image configurations from java-core to gax. Tested this out manually with Pub/Sub(includes gax+ gax-grpc as a dependency), Bigquery(includes only gax as a dependency) and Secretmanager(generated library). This PR is paired with googleapis/java-core#771