Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6753938

java launcher returns 0 exit code when Usage error detected

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ksrini Kumar Srinivasan
                Reporter:
                ohair Kelly Ohair (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: