JDK-4035546 : java.lang.System.{setErr,setOut} take PrintStream parameter
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version:
    1.1,1.1.1,1.1.3,1.1.4,1.1.5,1.1.8,1.2.0 1.1,1.1.1,1.1.3,1.1.4,1.1.5,1.1.8,1.2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS:
    generic,solaris_7,windows_95,windows_nt generic,solaris_7,windows_95,windows_nt
  • CPU: generic,x86,sparc
  • Submitted: 1997-02-28
  • Updated: 1998-06-12
  • Resolved: 1998-06-12
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description

Name: mc57594			Date: 02/28/97


The setErr() and setOut() methods of java.lang.System class
require as input parameter the PrintStream type, whose creators
has been deprecated (it is written in the documentation that this
class is still provided for backward compatibility). It should be
used instead the new class PrintWriter.
How the output streams of the system can be redirect ?
company - Sligos-Marben , email - ###@###.###
======================================================================

Comments
WORK AROUND Name: mc57594 Date: 02/28/97 ======================================================================
11-06-2004

PUBLIC COMMENTS It does not look like there is any work around, but continue to use the deprecated one in JDK1.1.
10-06-2004

EVALUATION mr@eng 1997-03-14: Yes, something like this should be done, but it's both nontrivial and an API change, so it must wait until 1.2. Assign this bug to me (I'm the one responsible for deprecating PrintStream) and I'll keep it in my queue. anandp@eng 1997-03-14: There should be overloaded methods: void setOut(PrintWriter pw); void setErr(PrintWriter pw); and these two should be deprecated: void setOut(PrintStream ps); void setErr(PrintStream ps); The PrintStream constructors have been un-deprecated (4139481). -- mr@eng 6/12/1998
12-06-1998