-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make class com.google.cloud.ServiceOptions$Builder public #1672
Make class com.google.cloud.ServiceOptions$Builder public #1672
Conversation
Changes Unknown when pulling d590a73 on rborer:public-serviceoptions-builder into ** on GoogleCloudPlatform:master**. |
This was written before I started work on this project, and I can't figure out what the advantage is of having the @aozarov maybe you have some insight here? |
maybe the purpose here was to prevent anyone to directly create an instance of this |
Change looks fine. This class was "internal" as it is nasty from generics perspective and we wanted to force holding a |
Thanks, @aozarov ! |
Thanks. |
…1021) * chore: [java] synthtool not to create an initial gitignore. Given that new generated libraries will come to the Java monorepo going forward and that any new hand-written libraries can get a new .gitignore from humans, there's no need to automatically prepare .gitignore file. * deleting gitignore * deleting .gitignore from golden Source-Link: googleapis/synthtool@0baf7e4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:25a679b48797fcdd98fe339c885d9595a8be5c16a275d1b466ba98e6951a3217 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
…496) * chore: [java] synthtool not to create an initial gitignore. Given that new generated libraries will come to the Java monorepo going forward and that any new hand-written libraries can get a new .gitignore from humans, there's no need to automatically prepare .gitignore file. * deleting gitignore * deleting .gitignore from golden Source-Link: https://togithub.com/googleapis/synthtool/commit/0baf7e4b652fcc7bf77ec341965c62c0b67e722d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:25a679b48797fcdd98fe339c885d9595a8be5c16a275d1b466ba98e6951a3217
Hi,
I'm trying to use BigQuery client from clojure. Due to a very old JVM bug, the class com.google.cloud.ServiceOptions$Builder need to be flagged public to make configuration methods callable from clojure (clojure uses reflection).
Due to this bug, the following piece of code throws an exception:
=>
IllegalArgumentException Can't call public method of non-public class: public com.google.cloud.ServiceOptions$Builder com.google.cloud.ServiceOptions$Builder.setProjectId(java.lang.String) clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:88)
As replied on the corresponding StackOverflow thread there are work-arounds but they are non-trivial to implement.
Thanks in advance to consider this patch.
Cheers,
Reynald