RFR: 8027765 Make exit codes and stdout/stderr printing from jmap/jinfo/jstack/jps consistent
weijun.wang at oracle.com
Thu Nov 14 01:46:57 PST 2013
But it's changing from stdout to stderr in the webrev. At least GNU
believes  it should go to stdout. It make the output more'able.
Also, I am not sure if
int exit = arg1.equals("-help") || arg1.equals("-h") ? 0 : 1;
really does what it intends to. Cannot remember the precedence order of
all these operators. I would add parentheses.
On 11/14/13, 17:38, Alan Bateman wrote:
> On 14/11/2013 07:34, Staffan Larsen wrote:
>> Still looking for an official Review of this change.
> This looks okay to me (I surprised we hadn't noticed the usage message
> going to stderr before). Slightly different styles for if-the-else in
> JStack but not too interesting. I guess we could use strings-in-switch
> here if there are more options added.
More information about the serviceability-dev