Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1655

Surefire leaks classloaders when using in-process strategy

    XMLWordPrintableJSON

    Details

      Description

      The test classloader is created here, but never closed. As a result, the underlying JARs in that classloader remain open and cannot be deleted. Also, their content can be stale when opened using java.util.ZipFile.

      This is a problem when running Maven integration tests using the Embedded3xLauncher. We are developing a Maven extension and want to make sure it works well with surefire/failsafe. This classloader leak means we have to use a forking launcher instead, which slows down our tests considerably.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              oehme Stefan Oehme
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: