Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BEEDC200BC5 for ; Tue, 22 Nov 2016 21:54:54 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BD741160B0C; Tue, 22 Nov 2016 20:54:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1340D160AF1 for ; Tue, 22 Nov 2016 21:54:53 +0100 (CET) Received: (qmail 55789 invoked by uid 500); 22 Nov 2016 20:54:53 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 55770 invoked by uid 99); 22 Nov 2016 20:54:53 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2016 20:54:53 +0000 Received: from desktop-2khsk44 (5248749D.cm-4-1b.dynamic.ziggo.nl [82.72.116.157]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 1B1211A0046; Tue, 22 Nov 2016 20:54:51 +0000 (UTC) Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Maven Developers List" , "Benedikt Ritter" Subject: Re: [SUREFIRE] Issues with classpath and module path References: Date: Tue, 22 Nov 2016 21:54:49 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Robert Scholte" Organization: Apache Software Foundation Message-ID: In-Reply-To: User-Agent: Opera Mail/12.17 (Win64) archived-at: Tue, 22 Nov 2016 20:54:54 -0000 On Tue, 22 Nov 2016 20:51:44 +0100, Benedikt Ritter wrote: > Hello again, > > Benedikt Ritter schrieb am Fr., 18. Nov. 2016 um > 08:40 Uhr: > >> Hi, >> >> I had the pleasure to meet Robert Scholte and Herve Boutemy here at >> ApacheCon in Seville. We talked al little bit about the progress of the >> JUnit 5 integration. This let us to create two sample projects which may >> indicate problems both within surefire and within JUnit. We're still >> investigating whether this are really issues. I'm in contact with the >> JUnit >> team to find out what they might need to fix and I'm reaching out to the >> Maven community to find out what we need to fix. >> >> The first sample project is https://github.com/britter/junit-cl >> It uses the configuration described at >> http://junit.org/junit5/docs/snapshot/user-guide/#running-tests-build-maven-engines-configure >> to >> configure the JUnit Jupiter test engine to run some tests. What we want >> to >> find out is, whether the test class can see the classes of the test >> engine >> (which they should not) and whether the production classes can see the >> test >> classes or the test engine classes (which they should not). This is what >> Robert called the "classpath problem", because everything in mangled >> together in one classpath. This probably needs to be fixed inside JUnit. >> Unfortunately currently the configuration described in the JUnit docs >> does >> not work. So instead of configuring the jupiter engine, it just reports >> that it can not find any engines. >> > > I've fixed the problem. The build now works an it fails for the right > reason :-) > > I tried to explain this problem to Marc Philipp from JUnit but I failed > to > understand why this is an issue at all. I mean, okay it may be cleaner if > we had separate classloaders, but what would be a really error scenario a > user might encounter when the same Classloader loads production and test > classes? > > >> >> The second example is https://github.com/britter/junit-java9 and it is >> about JUnit and Java 9 modules. Robert was sure that there is a problem >> with modules and that it needs to be fixed in surefire. However we did >> not >> get that example working at all, so Robert decided to investigate this >> some >> more when he is back home. >> Here is what we expect to fail: Suppose we have a package com.example >> with >> some classes. Then we add some tests in src/test/java in the same >> package. >> When we compile this and execute the tests, Java 9 should report that >> there >> are several jars providing classes for the com.example package. >> > > I've also applied the fix from above to the java9 example. > > Marc Philipp and I agreed upon tackling the Java 9 issue from both (maven > and junit) sites. He will talk to Sam Brannen from the Spring project and > ask them how they do reflection in Java 9. Furthermore he things about > writing to the OpenJDK Mailing list. > On the Maven site, Robert wanted to take a look into this. @Robert: Did > you > have some time to investigate this some more? > No, not yet. But I've found the description: http://openjdk.java.net/jeps/261 , read Patching module content Robert > Regards, > Benedikt > > >> >> Hope I was able to give you a heads up on what we were talking about :-) >> >> Regards, >> Benedikt --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org