8189765: Improve error reporting for compiling against package not visible due to modules

When looking in other modules for an undefined Symbol, also look into the unnamed module.

Reviewed-by: mcimadamore
This commit is contained in:
Jan Lahoda 2018-04-12 09:23:34 +02:00
parent 8483faa4a9
commit 594fb594ce
4 changed files with 9 additions and 8 deletions

View file

@ -252,7 +252,7 @@ public class CompileModulePatchTest extends ModuleTestBase {
.getOutputLines(Task.OutputKind.DIRECT);
List<String> expectedOut = Arrays.asList(
"Extra.java:1:76: compiler.err.doesnt.exist: p",
"Extra.java:1:75: compiler.err.package.not.visible: p, (compiler.misc.not.def.access.does.not.read.unnamed: p, java.compiler)",
"1 error"
);