No JLS assertion specifying a compile-time error

Georgiy Rakov georgiy.rakov at
Fri Mar 3 15:01:15 UTC 2017


currently javac from JDK9 build 159 fails to compile following modules:

module m1 { exports p; }
module m2 { exports p; }
module m3 {
     required m1
     required m2;

./modules/m3/ error: module m3 reads package p from 
both m1 and m2
module m3 {
1 error

Currently lang-vm 
<> doesn't 
specify this behavior, however API documnetation 
specifies that such error can occur during resolution.

Should lang-vm specify it explicitly as a compile-time error?

Thank you,

More information about the jigsaw-dev mailing list