Reusing module name token `*` in -d

Stephan Herrmann stephan.herrmann at berlin.de
Sat Jan 21 18:35:28 UTC 2017


On 01/21/2017 06:52 PM, forax at univ-mlv.fr wrote:
> Robert,
> How do you compile these 2 modules with Maven ?
>
> module foo {
>   exports foo to bar;
> }
>
> module bar {
>   requires foo;
> }
>
> when compiling 'foo' javac needs to see if 'bar' exists and when compiling 'bar', javac will ask to see 'foo'.

I don't think so:

"It is permitted for the to clause of an exports or opens statement to specify a module which is not observable."
[lang-vm.html 1.1.2 - 2017/1/9]

I assume this will eventually (when??) become part of JLS, right?

cheers,
Stephan


More information about the jigsaw-dev mailing list