JDK-4128736 : java has an inconsistency with the stdout and stderr streams.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.2.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 1998-04-14
  • Updated: 2015-03-03
  • Resolved: 1999-01-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.2.0 1.2beta4Fixed
Related Reports
Relates :  
Relates :  
Description
javap has an inconsistency with the stdout and stderr streams.

Typing "java -version" should send its output to stdout. Instead 
it sends it to stderr.

Typing "java -v classfile" should send its output to stdout. Instead
it sends it to stderr.

Only errors should goto stderr.

This should be consistent with the jar tool that was fixed because of this same problem.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.2beta4 INTEGRATED IN: 1.2beta4
14-06-2004

EVALUATION "java -version" is easy to fix. I am not sure we should fix "java -verbose" though. -verbose if for debugging purposes only (who'd want that in a deployed VM), and there is a lot of code in the VM that will have to be changed to make it all go to stdout. anand.palaniswamy@Eng 1998-04-14 Output of -version, -X and -help go to stdout. Error messages go to stderr. Haven't fixed verbose because that is too big a change. anand.palaniswamy@Eng 1998-05-03
14-04-1998