RFE regarding duplicate module message

Alan Bateman Alan.Bateman at oracle.com
Mon Jul 11 21:32:06 UTC 2016


On 11/07/2016 19:48, Paul Benedict wrote:

> Regarding this exception:
> java.lang.module.ResolutionException: Two versions of module com.domain2
> found in mods
>
> I have three requests:
>
> 1) The "two versions" is actually misleading. In my system, I purposely
> created three "com.domain2" in my modules directory. It's better to just
> say there is a "duplicate" module than specify a number.
>
> 2) Can the clashing modules be listed out please? Which ones in the module
> path are the offenders?
>
> 3) Just as "com.domain2" was called out as a "module" in the message,
> please also refer to "mods" as the module path.
>
Thanks for the mail. I think we can improve the message to make it 
clearer which artifacts have the duplicate module. There are a number of 
patches coming to the module path that change this code a bit but I can 
we can easily include this.

-Alan


More information about the jigsaw-dev mailing list