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

reuseForks=false fails on jdk-9-ea builds

    XMLWordPrintableJSON

Details

    Description

      When I run any surefire test (with reuseForks=false) that uses java.sql classes on recent jdk-9 ea builds it fails with:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project maven-surefire-plugin-example: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: java.lang.NoClassDefFoundError: java/sql/SQLException: java.sql.SQLException -> [Help 1]

      If I run it with reuseForks=true it works fine.

      This problem was introduced in jdk build 9-ea+122 (http://download.java.net/java/jdk9/changes/jdk-9+122.html) when the jigsaw team addressed:

      d20279be77d9 8154189 Deprivilege java.sql and java.sql.rowset module

      Attachments

        1. j9test.tar
          20 kB
          Michael Musgrove
        2. Java9Example.zip
          2 kB
          Enrico Olivelli

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              mmusgrov Michael Musgrove
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: