"""error: module testng reads package test from both test and testng"""
Martin Buchholz
martinrb at google.com
Tue Aug 22 21:09:35 UTC 2017
Mandy, thanks for the investigation.
On Tue, Aug 22, 2017 at 12:38 PM, mandy chung <mandy.chung at oracle.com>
wrote:
>
> The testng.jar version I had bundled with jcommander classes and hence the
> error message reports com.beust.jcommander.* packages from jcommander and
> testng module. It was an old version before testng was mavenized. If I
> run jtreg with the testng and jcommander downloaded from maven, the test
> passes.
>
Right. maven and jigsaw are both opinionated "module" systems. Modern
testng and jcommander mavenized jar files are cleanly separated, from
maven's point of view.
> Jon, Jan,
> I think the javac error message could be improved to make it clear that
> the package is split in multiple module. In addition, the test only
> contains explicit modules. It's strange that the javac reports that "the
> unnamed module reads package xxx from ....". I will create a JBS issue on
> improving the error message.
Yes, this message is very confusing.
More information about the jigsaw-dev
mailing list