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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: