RFR: 8027765 Make exit codes and stdout/stderr printing from jmap/jinfo/jstack/jps consistent

Alan Bateman Alan.Bateman at oracle.com
Thu Nov 14 02:08:36 PST 2013


On 14/11/2013 09:46, Weijun Wang wrote:
> But it's changing from stdout to stderr in the webrev. At least GNU 
> believes [1] it should go to stdout. It make the output more'able.
This is a confusing topic. I think the normal convention is that when 
there are invalid arguments that usage message is essentially the error 
message and so should go to stderr with the program exiting with an 
error code. On the other hand, -help is supposed to print to stderr and 
exit with a success. We should double check the launcher to make sure 
that we are consistent (although it has its own issues there).

-Alan.


More information about the serviceability-dev mailing list