Aliasing (automatic) modules
Alan Bateman
Alan.Bateman at oracle.com
Sun Apr 9 16:19:50 UTC 2017
On 08/04/2017 12:35, Nicolai Parlog wrote:
> Hi again,
>
> so far most (all?) proposals for handling automatic module names tackled
> the "what is the module's real name" aspect of this question but I have
> seen none that would push the likelihood of the same dependency being
> referenced by different names reasonably close to zero.
The original exploratory phase of Project Jigsaw did explore (and had
basic implementation support for) aliases. It went away, along with many
other features, when the design was radically simplified. So there is
some understanding here of using aliases at either declaration-site or
use-site (the CLI option suggested in your mail is one approach to
use-site). As regards trying to introduce something now then it's matter
for JSR 376. However, I don't see it happening as it's too late in JDK 9
to be introducing new concepts. Also in this case then it would be a
change that has subtle interactions in several areas and there just
isn't enough time to shake out that tail of issues.
-Alan
More information about the jigsaw-dev
mailing list