-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add ZoneId converter #24
Conversation
9f10674
to
a7e24eb
Compare
a7e24eb
to
11860d4
Compare
Hi @pavanpvpk - sorry to take so long to get back to you, I've been travelling. I have a couple of points of feedback:
|
@gkopff extremely sorry for the delay. I have made the changes and added few new test cases as well. Let me know your feedback. |
@gkopff Yo, any idea idea when this gonna be pushed? I have been impatiently waiting for three years. |
@ahmedkhalf the formatting fixes never got done, so that's why it was sitting there. I've fixed the formatting myself today - but it will be a few days to work out pushing to Maven Central. Things have changed since I last did it. |
@ahmedkhalf This has been released, but due to a backlog in the Maven Central indexing, it's not yet reported by the search. It should be resolvable by Maven itself though - I've bene in contact with Sonatype about it: https://issues.sonatype.org/browse/OSSRH-82669 |
Thank you! But now even though the tests are passing I am getting a warning: WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.gson.internal.reflect.ReflectionHelper (file:/home/ahmedk/.m2/repository/com/google/code/gson/gson/2.9.0/gson-2.9.0.jar) to field java.time.ZoneRegion.id
WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.reflect.ReflectionHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release After some investigation, I decided to use reflection to get the private class in java.time that was causing issues: builder.registerTypeAdapter(getClassByName("java.time.ZoneRegion"), new ZoneIdConverter()); not sure if this is the best way to go about this... should I file an issue? |
As the warning says, that's a Gson issue. I don't think Gson will ever address it. Moshi appears to be the successor to Gson, as per: google/gson#1821 |
No description provided.