Skip to content
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

Serialisation of Durations #33

Open
ifly6 opened this issue Mar 31, 2024 · 1 comment
Open

Serialisation of Durations #33

ifly6 opened this issue Mar 31, 2024 · 1 comment

Comments

@ifly6
Copy link

ifly6 commented Mar 31, 2024

It doesn't seem as if this adds a converter for java.time.Duration:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.gson.internal.reflect.ReflectionHelper 
    (file:/Users/ifly6/.m2/repository/com/google/code/gson/gson/2.9.1/gson-2.9.1.jar) to field
    java.time.Duration.seconds
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

Is that intentional?

@gkopff
Copy link
Owner

gkopff commented Apr 11, 2024

What code are you using to get that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants