-
Notifications
You must be signed in to change notification settings - Fork 108
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
Mark internal fields as transient #656
Conversation
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.
Hello @axelrindle
thank very much for your PR
Can you add tests to the test suite?
I could need some assistance for adding tests to the suite. How exactly could I test this very specific scenario? The |
@axelrindle let's go with your test in this case However both CIs are failing. Can you fix your PR? |
@curquiza The linter should be happy now :) |
Hello @axelrindle |
@curquiza Try again please ... I think I got it right now 😄 |
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.
Yeaaaaaaah it works
Next time you contribute, I will not have to approve the CI to run it and you will be able to see the CI result immediately. This is a security we added for first-time contribution 😊
bors merge
Build succeeded: |
Pull Request
Related issue
Fixes #655
What does this PR do?
Gson has issues working with the class
com.meilisearch.sdk.Index
in Java 9 and higher. Specifically all the fields which hold acom.meilisearch.sdk.HttpClient
. Marking those fields astransient
excludes them from serialization and thus preventing the reflective access on JDK-internal types.PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!