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

Select correct string converter. #761

Merged
merged 1 commit into from
Feb 14, 2020
Merged

Select correct string converter. #761

merged 1 commit into from
Feb 14, 2020

Conversation

michael-simons
Copy link
Collaborator

We state that @DateString can be used both on java.util.Date and java.time.Instant. However, that is not true: Both underlying converters maybe used, but the annotation picked always the DateStringConverter. This change fixes that behaviour and closes #758.

We state that `@DateString` can be used both on  `java.util.Date` and `java.time.Instant`. However, that is not true: Both underlying converters maybe used, but the annotation picked always the `DateStringConverter`. This change fixes that behaviour and closes #758.
@michael-simons michael-simons merged commit 5a9c011 into master Feb 14, 2020
@michael-simons michael-simons deleted the issue/758 branch February 14, 2020 12:51
michael-simons added a commit that referenced this pull request Feb 14, 2020
We state that `@DateString` can be used both on  `java.util.Date` and `java.time.Instant`. However, that is not true: Both underlying converters maybe used, but the annotation picked always the `DateStringConverter`. This change fixes that behaviour and closes #758.
michael-simons added a commit that referenced this pull request Feb 14, 2020
We state that `@DateString` can be used both on  `java.util.Date` and `java.time.Instant`. However, that is not true: Both underlying converters maybe used, but the annotation picked always the `DateStringConverter`. This change fixes that behaviour and closes #758.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@DateString annotation is not supported for java.time.Instant, though docs tell otherwise
1 participant