< prev index next >
src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java
Print this page
rev 3947 : imported patch xmodule-to-patch-module
*** 1446,1455 ****
--- 1446,1460 ----
if (implicitSourcePolicy == ImplicitSourcePolicy.NONE
&& !inputFiles.contains(env.toplevel.sourcefile)) {
return;
}
+ if (!modules.multiModuleMode && env.toplevel.modle != modules.getDefaultModule()) {
+ //can only generate classfiles for a single module:
+ return;
+ }
+
if (compileStates.isDone(env, CompileState.LOWER)) {
results.addAll(desugaredEnvs.get(env));
return;
}
< prev index next >