maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Musgrove (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SUREFIRE-1265) reuseForks=false fails on jdk-9-ea builds
Date Mon, 29 Aug 2016 14:36:21 GMT

    [ https://issues.apache.org/jira/browse/SUREFIRE-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15446036#comment-15446036
] 

Michael Musgrove edited comment on SUREFIRE-1265 at 8/29/16 2:36 PM:
---------------------------------------------------------------------

OK agreed. I am still seeing the issue with the java.corba module which is where I first hit
this issue. The attached reproducer (it replaces the previous one and adds an extra test which
imports one of the classes in the java.corba module) shows the problem:

bq. mvn clean test -DreuseForks=false -DchildDelegation=false
 fails with NoClassDefFoundError: java/sql/SQLException
bq. mvn clean test -DreuseForks=false -DchildDelegation=true
 fails with NoClassDefFoundError: org/omg/CORBA/BAD_INV_ORDER
bq. mvn clean test -DreuseForks=true -DchildDelegation=<false|true>
 both tests pass



was (Author: mmusgrov):
OK agreed. I am still seeing the issue with the java.corba module which is where I first hit
this issue. The attached reproducer shows the problem:

bq. mvn clean test -DreuseForks=false -DchildDelegation=false
 fails with NoClassDefFoundError: java/sql/SQLException
bq. mvn clean test -DreuseForks=false -DchildDelegation=true
 fails with NoClassDefFoundError: org/omg/CORBA/BAD_INV_ORDER
bq. mvn clean test -DreuseForks=true -DchildDelegation=<false|true>
 both tests pass


> reuseForks=false fails on jdk-9-ea builds
> -----------------------------------------
>
>                 Key: SUREFIRE-1265
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1265
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.19.1
>            Reporter: Michael Musgrove
>            Assignee: Tibor Digana
>              Labels: jigsaw
>         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 (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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message