Skip to content

Remove use of global static TypeFactory singleton from 3.0 #4659

Closed
@cowtowncoder

Description

@cowtowncoder

Describe your Issue

(note: offshoot of FasterXML/jackson-core#1321)

Unlike all other caches, cache for the default instance of TypeFactory is not bound to one specific ObjectMapper and can therefore lead to unintended Class retention.
This should not happen: each ObjectMapper should have its own TypeFactory instead of global singleton.

Change is probably not possible for 2.x but should be doable for 3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Issue planned for initial 3.0 release

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions