Bug 55513 - StreamCopier cannot be used with System.err or System.out as it closes the output stream
StreamCopier cannot be used with System.err or System.out as it closes the ou...
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.9
PC Windows XP
: P2 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-09-02 23:09 UTC by Sebb
Modified: 2013-09-02 23:13 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2013-09-02 23:09:58 UTC
It would be useful to be able to use StreamCopier with System.out/System.err, however the output strem is closed at the end. This prevents any output appearing.

The output stream should only be closed if it is not System.out/.err

The same consideration does not apply to System.in, as it would be read until EOF anyway.
Comment 1 Sebb 2013-09-02 23:13:52 UTC
URL: http://svn.apache.org/r1519529
Log:
StreamCopier cannot be used with System.err or System.out as it closes the output stream
Bugzilla Id: 55513

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/StreamCopier.java
    jmeter/trunk/xdocs/changes.xml