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

Tighten up ToolBox' JavacTask to not silently accept javac crash as a failure

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 23
    • tools
    • None
    • b07

      Currently, when a test is using ToolBox' JavacTask, using `run(Expect.FAIL)` without an explicit exit code, the run method will not report an error if javac crashes with an exception. This may hide cases where javac crashes after reporting an error.

      It would be good to tighten up the method to require exit code 1. javac uses exit code 4 when it crashes with an exception.

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: