Skip to content

Support AutoCloseable with SerializationFeature.CLOSE_CLOSEABLE #2382

Closed
@Logic-32

Description

@Logic-32

The documentation for SerializationFeature.CLOSE_CLOSEABLE clearly indicates that it only closes Closeables as of 2.9.9.1. Can it be updated to close AutoCloseables as well?

Ref:

if (config.isEnabled(SerializationFeature.CLOSE_CLOSEABLE) && (value instanceof Closeable)) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Issue planned for initial 3.0 release3.0-release-notesIssues relevant for 3.0 release notes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions