Javac ignores module-info dependencies

Jonathan Gibbons jonathan.gibbons at oracle.com
Tue Jan 24 08:00:25 PST 2012


Mike,

Sorry, known issue. I've been waiting for the visibility and 
accessibility discussions to wind down before implementing the rules in 
javac.

-- Jon

On 01/24/2012 05:40 AM, Mike Ershov wrote:
> Hello,
>
> I noticed that javac does not take requires part of module-info as
> compile class path. Is it correct behavior?
> I have sources for two modules under one source root -
> m1 and m2. m2 uses class from m1 but m2's module-info has no "requires
> m1" statement. I expected compile-time error, but a compilation is
> successful and I see runtime error. The code is attached.
>
> Sorry in advance if this is known issue.
>
> Thanks,
> Mike
>





More information about the jigsaw-dev mailing list