View | Details | Raw Unified | Return to bug 236814
Collapse All | Expand All

(-)src/org/eclipse/jdt/internal/compiler/tool/EclipseCompiler.java (-1 / +1 lines)
Lines 98-104 Link Here
98
		PrintWriter writerOut = null;
98
		PrintWriter writerOut = null;
99
		PrintWriter writerErr = null;
99
		PrintWriter writerErr = null;
100
		if (out == null) {
100
		if (out == null) {
101
			writerOut = new PrintWriter(System.out);
101
			writerOut = new PrintWriter(System.err);
102
			writerErr = new PrintWriter(System.err);
102
			writerErr = new PrintWriter(System.err);
103
		} else {
103
		} else {
104
			writerOut = new PrintWriter(out);
104
			writerOut = new PrintWriter(out);
(-)src/org/eclipse/jdt/compiler/tool/tests/CompilerInvocationTests.java (-1 / +1 lines)
Lines 930-936 Link Here
930
	assertTrue(errBuffer.toString().isEmpty());
930
	assertTrue(errBuffer.toString().isEmpty());
931
}
931
}
932
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=236814
932
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=236814
933
public void _test022_output_streams() throws IOException {
933
public void test022_output_streams() throws IOException {
934
	ByteArrayOutputStream 
934
	ByteArrayOutputStream 
935
			outBuffer = new ByteArrayOutputStream(),
935
			outBuffer = new ByteArrayOutputStream(),
936
			errBuffer = new ByteArrayOutputStream();
936
			errBuffer = new ByteArrayOutputStream();

Return to bug 236814