One quick note on that: while most modules do support Java7 runtime (but all require JDK 8 to build, partly since Sonatype OSS repo does not support pre-java 8 any more), at this point many modules could probably start requiring Java 8 baseline.
This is one case where I'd be ok with it assuming user community does not voice strong objections. That may be separate discussion.
On one vs two modules: no strong opinion here.
Now... this is one area where it seems like it'd be nice to have some mechanism for databind to introspect capabilities of streaming/format implementation, to basically check if there is a "native" representation for date/time types. If so, we would only need to change Java 8 date/time implementation to use newly added `writeXxx()` method(s) if supported (but only in that case!), which would then be translated by format implementation to actual encoding.
This seems doable for things that can be represented by `long`.
For backends (like json and other data formats, at least) that do not support specific encoding, serializer would default to String/timestamp write methods.
Another possibility that I also considered (and am still open to) is instead have overloads for `writeString()` and `writeNumber()`, which would basically be something like
"writeStringFor(Object value, String representation)"
"writeNumberFor(Object value, long serialization)"
which would have some advantages (impl could either use String/number as-is, or use alternative encoding) and disadvantages (suboptimal if caller already spent time to encode String representation; more type-checking/casting logic).
Having said that, I am not against straight-forward override of (de)serializers. But think that there might be some synergy in splitting tasks between databind and streaming layers.
-+ Tatu +-
--
You received this message because you are subscribed to the Google Groups "jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/85ac7d05-0309-4766-901b-a89ed1f2fdbe%40googlegroups.com.