Mandy, thanks for the investigation. On Tue, Aug 22, 2017 at 12:38 PM, mandy chung <mandy.ch...@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.