cucumber/gherkin — Issue #151: Formatters shouldn't close streams they don't create
Author: aparkinson
Created: 2011-12-06 14:12:33+00:00
State: open

Currently the Java implementations of JSON Formatter and Pretty Formatter receive streams from their clients. These streams are then closed by the formatters during their own close operations.

This assumption by the formatters that the client has finished with stream does not always hold true see cucumber/cucumber-jvm#96

If a formatter is a given a stream it should not close it. If the formatter creates a stream then it should close it.