maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrico Olivelli (JIRA)" <>
Subject [jira] [Commented] (SUREFIRE-1265) reuseForks=false fails on jdk-9-ea builds
Date Wed, 03 May 2017 08:52:04 GMT


Enrico Olivelli commented on SUREFIRE-1265:

Thank you [~tibor17]
Is the test case good for you in order to see the failure ?
Otherwise I will try to add a test case to surefire-1265

IMHO This will be enough 
public class J9Test {

    public void test_sql_mod() throws java.sql.SQLException {

    public void test_corba_mod() /*throws org.omg.CORBA.BAD_INV_ORDER*/ {

    public void test_javaws()  {<String> holder = new"test");
        holder.value = "test";

is there any way to launch a single test (Surefire1265Java9IT) of the IT of surefire ? I am
using -Dtest=xxxx but it does not work, the architecture is quite complex, if you give me
some pointer I will come at speed to the problem

> reuseForks=false fails on jdk-9-ea builds
> -----------------------------------------
>                 Key: SUREFIRE-1265
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.19.1
>            Reporter: Michael Musgrove
>            Assignee: Tibor Digana
>              Labels: jigsaw
>             Fix For: 2.20.1
>         Attachments: j9test.tar,
> 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 (
when the jigsaw team addressed: 
>     d20279be77d9	8154189	Deprivilege java.sql and java.sql.rowset module

This message was sent by Atlassian JIRA

View raw message