Skip to content

CSVParserBootstrapper creates UTF8Reader which is incorrectly not auto-closed #134

@iuliu-b

Description

@iuliu-b

This line creates a UTF8Reader whose autoclose is determined by _context.isResourceManaged() alone. In other instances autoclose is determined by _ioContext.isResourceManaged() || isEnabled(StreamReadFeature.AUTO_CLOSE_SOURCE) or equivalent (see YAMLParser).

This means that in cases where AUTO_CLOSE_SOURCE is enabled but isResourceManaged() is false, files are left open where the user expects them to be auto-closed in line with other class behaviors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions