Javac ignores module-info dependencies
mikhail.ershov at oracle.com
Tue Jan 24 07:17:00 PST 2012
Sorry for inconvenience, trying to resend with attachment.
Mike Ershov wrote:
> 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.
More information about the jigsaw-dev