JDK-6753938 : java launcher returns 0 exit code when Usage error detected
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2008-09-29
  • Updated: 2017-05-16
  • Resolved: 2010-07-12
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.
JDK 7
7Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Running something like 'java' or 'java -Xcomp' results in the java command usage message and a process exit code of 0.

Using 'javac' or 'javac -J-Xcomp' does return a non-zero exit code. So the different launchers appear to behave differently.

If a process doesn't return 0 on success, and only on success, the makefiles and ant builds will have problems.

Comments
EVALUATION will be fix along with 6921472.
18-06-2010

EVALUATION missing check in code.
18-06-2010