You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
iuliu-b
changed the title
CSVParserBootstrapper creates UTF8Reader which is incorrectly not auto-closeable
CSVParserBootstrapper creates UTF8Reader which is incorrectly not auto-closed
May 31, 2019
cowtowncoder
changed the title
CSVParserBootstrapper creates UTF8Reader which is incorrectly not auto-closedCSVParserBootstrapper creates UTF8Reader which is incorrectly not auto-closed
Jun 1, 2019
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 butisResourceManaged()
is false, files are left open where the user expects them to be auto-closed in line with other class behaviors.The text was updated successfully, but these errors were encountered: