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

Javac server process left running if build fails on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • infrastructure
    • None
    • b135
    • windows

      The symptom of this problem is that if the build fails, quickly fixing the issue and rerunning the build will just fail again very early with an error message like this:

         make[1]: *** [/cygdrive/d/java/ws/dev/make/Init.gmk:290: main] Error 1
         make[1]: Leaving directory '/cygdrive/d/java/ws/dev'
         make: *** [/cygdrive/d/java/ws/dev/make/Init.gmk:185: java.base-only] Error 2

      The fix is rather simple. There is a cleanup call to stop the sjavac server background process in Init.gmk, but it's only run on successful builds and not in the "on-failure" routine. Adding the call to the on-failure routine fixes the issue.

            erikj Erik Joelsson
            erikj Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: