GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(java): initialize classes at build-time to fix Native Image compilation by mpeddada1 · Pull Request #874 · googleapis/java-storage-nio
This repository was archived by the owner on Jun 2, 2026. It is now read-only.
Conversation
Contributor
Using META-INF/services with Native Image compilation causes the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
suztomo
reviewed
Comment on lines
+3
to
+4
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only for static fields or static initializers are needed.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Slightly updated the comment here. Let me know if this sounds okay to you? Explored the code a little further to double check what's happening: The initialization of classes stems from Line 96 in 004ab8c
Looks like this seems to be the case in the reproducer as well where when we create a new class
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
suztomo
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I'm curious about how you get the list) If we don't have this
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
| com.google.cloud.storage.StorageOptions,\ | ||
| com.google.cloud.storage.DefaultStorageRetryStrategy,\ | ||
| com.google.api.client.http.OpenCensusUtils,\ | ||
| com.google.api.client.http.GenericUrl,\ |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I see. Thank you for checking.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I had to add some additional classes, not sure if that's unexpected
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
🤖 I have created a release *beep* *boop* --- ### [0.123.28](v0.123.27...v0.123.28) (2022-04-18) ### Bug Fixes * **native:** initialize classes at build-time to fix Native Image compilation ([#874](#874)) ([df905cb](df905cb)) * **test:** replace HashMap with ConcurrentHashMap to avoid ConcurrentModificatio… ([#883](#883)) ([d2fe2a0](d2fe2a0)) ### Dependencies * update dependency com.google.apis:google-api-services-storage to v1-rev20220401-1.32.1 ([#881](#881)) ([a598199](a598199)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#884](#884)) ([c08f115](c08f115)) * update dependency com.google.cloud:google-cloud-storage to v2.6.0 ([#878](#878)) ([0bd1985](0bd1985)) * update dependency com.google.cloud:google-cloud-storage to v2.6.1 ([#885](#885)) ([cf24525](cf24525)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ### [0.123.28](googleapis/java-storage-nio@v0.123.27...v0.123.28) (2022-04-18) ### Bug Fixes * **native:** initialize classes at build-time to fix Native Image compilation ([#874](googleapis/java-storage-nio#874)) ([22f1464](googleapis/java-storage-nio@22f1464)) * **test:** replace HashMap with ConcurrentHashMap to avoid ConcurrentModificatio… ([#883](googleapis/java-storage-nio#883)) ([31f823c](googleapis/java-storage-nio@31f823c)) ### Dependencies * update dependency com.google.apis:google-api-services-storage to v1-rev20220401-1.32.1 ([#881](googleapis/java-storage-nio#881)) ([4f89adc](googleapis/java-storage-nio@4f89adc)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#884](googleapis/java-storage-nio#884)) ([9d06c27](googleapis/java-storage-nio@9d06c27)) * update dependency com.google.cloud:google-cloud-storage to v2.6.0 ([#878](googleapis/java-storage-nio#878)) ([425f3de](googleapis/java-storage-nio@425f3de)) * update dependency com.google.cloud:google-cloud-storage to v2.6.1 ([#885](googleapis/java-storage-nio#885)) ([8329458](googleapis/java-storage-nio@8329458)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ### [0.123.28](googleapis/java-storage-nio@v0.123.27...v0.123.28) (2022-04-18) ### Bug Fixes * **native:** initialize classes at build-time to fix Native Image compilation ([#874](googleapis/java-storage-nio#874)) ([22f1464](googleapis/java-storage-nio@22f1464)) * **test:** replace HashMap with ConcurrentHashMap to avoid ConcurrentModificatio… ([#883](googleapis/java-storage-nio#883)) ([31f823c](googleapis/java-storage-nio@31f823c)) ### Dependencies * update dependency com.google.apis:google-api-services-storage to v1-rev20220401-1.32.1 ([#881](googleapis/java-storage-nio#881)) ([4f89adc](googleapis/java-storage-nio@4f89adc)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#884](googleapis/java-storage-nio#884)) ([9d06c27](googleapis/java-storage-nio@9d06c27)) * update dependency com.google.cloud:google-cloud-storage to v2.6.0 ([#878](googleapis/java-storage-nio#878)) ([425f3de](googleapis/java-storage-nio@425f3de)) * update dependency com.google.cloud:google-cloud-storage to v2.6.1 ([#885](googleapis/java-storage-nio#885)) ([8329458](googleapis/java-storage-nio@8329458)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.