Skip to content

Allow types other than Date to be used in the "timestamp" MVC error model #23256

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

Closed
wants to merge 1 commit into from

Conversation

lock14
Copy link
Contributor

@lock14 lock14 commented Sep 11, 2020

Remove casting timestamp to java.util.Date as the cast is not necessary and it makes using other objects (e.g. java.time classes) for the timestamp more cumbersome (requires supplying a custom ErrorView instead of being able to use the default StaticView).

Remove casting timestamp to java.util.Date as the cast is not necessary and it prevents using other objects (e.g. java.time classes).
@pivotal-issuemaster
Copy link

@lock14 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@lock14 Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 11, 2020
@philwebb philwebb added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 12, 2020
@philwebb philwebb added this to the 2.2.x milestone Sep 12, 2020
@philwebb philwebb changed the title Update ErrorMvcAutoConfiguration.java Allow types other than Date to be used in the "timestamp" MVC error model Sep 12, 2020
philwebb pushed a commit that referenced this pull request Sep 12, 2020
Remove casting "timestamp" to `java.util.Date` in
`ErrorMvcAutoConfiguration` as the cast is not necessary and it
prevents other types (e.g. `java.time`) from being used.

See gh-23256
@philwebb philwebb closed this in 018cc1c Sep 12, 2020
@philwebb philwebb self-assigned this Sep 12, 2020
@philwebb philwebb modified the milestones: 2.2.x, 2.2.10 Sep 12, 2020
@philwebb
Copy link
Member

Thanks very much for the PR @lock14. I've merged this into 2.2.x and it's also been forward merged to 2.3.x and 2.4.x.

philwebb added a commit that referenced this pull request Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants