FasterXML / jackson-databind

General data-binding package for Jackson (2.x): works on streaming API (core) implementation(s)
Apache License 2.0
3.52k stars 1.38k forks source link

Embedding Java 8 modules #982

Open lpandzic opened 9 years ago

lpandzic commented 9 years ago

From jackson-dev google group:

I would also be interested in devising ways to embed Java 8 parameter name access dynamically, so that for 2.8 we could then embed this functionality, and eliminated need for parameter-names module. Further on would be handling of Optional type, and last Date/Time types (jsr310). I don't think there is absolute need to keep parameter name access as pluggable module if it can be automatically enabled while still allowing Java7 usage (for short/medium term).

lpandzic commented 9 years ago

This might be of interest: https://spring.io/blog/2015/04/03/how-spring-achieves-compatibility-with-java-6-7-and-8

cowtowncoder commented 4 years ago

Parameter names, OptionalXxx included in Jackson 3.0; pending future discussions on whether 2.12 (or such) should require Java 8 could open up embedding for 2.x too. Java 8 date/time is separate question.

cowtowncoder commented 3 years ago

One quick note: I will propose Java 8 baseline for Jackson 2.13: that could lead to embedding of same modules as what 3.x embeds.

cowtowncoder commented 3 years ago

Alas, cannot embed even "datatypes" module, at least in 2.13, due to non-migrateable option:

https://github.com/FasterXML/jackson-modules-java8/issues/216

which I will deprecate for 2.13.

This leaves possibility of parameter names inclusion; will need to see how complex that inclusion would be,