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

java launcher returns 0 exit code when Usage error detected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 7
    • 7
    • tools
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: