Skip to content

Add back TypeFactory.constructType(Type, Class) as "deprecated" in 2.7.1 #1079

@cowtowncoder

Description

@cowtowncoder

(for background, see http://stackoverflow.com/questions/34721851/spring-4-2-3-and-fasterxml-jackson-2-7-0-are-incompatible)

Due to complete rewrite of type inspection, resolution, changes were necessary to handling.
However, since some of methods removed were public and not deprecated, it would be good to go back and see if it would not be possible to add them back as deprecated in 2.7.1. While this is not as good as noticing the issue for 2.7.0, perhaps it would help reduce friction for upgrades -- it is unfortunate there was a breakage.

Related methods include:

    public JavaType constructType(Type type);
    public JavaType constructType(Type type, TypeBindings bindings);
    public JavaType constructType(TypeReference<?> typeRef);
    public JavaType constructType(Type type, Class<?> context);
    public JavaType constructType(Type type, JavaType context);

of which it is likely that 2nd one can not be supported, but others are probably fine to keep, just discarding or ignoring contextual argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions