java9: avoid loading sources from classpath when compiling in older "moduleless" mode (IDEA-181115)

This commit is contained in:
Eugene Zhuravlev
2017-11-07 15:01:12 +01:00
parent 08378f15f1
commit 6c5bacd425
@@ -141,7 +141,7 @@ public class JavacMain {
}
}
if (javacBefore9 || !sourcePath.isEmpty()) {
if (javacBefore9 || !sourcePath.isEmpty() || modulePath.isEmpty()) {
try {
// ensure the source path is set;
// otherwise, if not set, javac attempts to search both classes and sources in classpath;