Skip to content

Binary compatibility broken in 2.9.x in DateTimeSerializer #99

@andrewl102

Description

@andrewl102

This is due to commit df3f16c.

Currently, we make use heavy usage of Jackson in various project, often resulting in heterogenous versions of Jackson and jackson-datatype-joda being present in the classpath.
As a result of this commit, binary compatibility was broken which presents a compatibility issue for us.
A previously valid construct call

public DateTimeSerializer(JacksonJodaDateFormat format) is now invalid, due to the refactoring.

There is a very trivial fix that could be applied, by simply reintroducing this construct and calling the new constructor as follows:
DateTimeSerializer(format,0).

I'm happy to prepare a pull request if desired, though at only 1 line this appears a little redundant.
Is there any possibility of making this change?
Typically breaking binary compatibility in a library happens after first issuing a deprecation of the old constructor/method and/or in a major version bump, so it would be extremely helpful to maintain binary compatibility for now if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions