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

As of Jackson 2.6 the module class supporting the java.time (java8) package has changed [SPR-13212] #17804

Closed
spring-projects-issues opened this issue Jul 8, 2015 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jul 8, 2015

Zoltan Kiss opened SPR-13212 and commented

Previously the module class supporting Java 8's java.time package was com.fasterxml.jackson.datatype.jsr310.JSR310Module. Now it has been changed to com.fasterxml.jackson.datatype.jsr310.JavaTimeModule.

This is because of a change in the way ZonedDateTime s are serialized; until 2.6 the zone id was included in the string representation. With 2.6 this behaviour has been changed to adhere to ISO 8601 standards in string representation of dates and a new serialization feature WRITE_DATES_WITH_ZONE_ID has been added to enable the old behaviour.

In an effort to provide a backwards compatible behaviour, a new module class JavaTimeModule was created which respects the new serialization feature and the old one was kept which ignores it.


Affects: 4.2 RC2

Reference URL: FasterXML/jackson-datatype-jsr310#15

Issue Links:

Referenced from: commits 8fdbf42

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

As of 4.2, we're registering JavaTimeModule if present, just falling back to JSR310Module for compatibility with older Jackson versions.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants