IDEA-242516 Eclipse compiler throws IllegalArgumentException because -extDirs is not supported on jdk9+

GitOrigin-RevId: bf032df75088619ca276d0b434487f4665d58ede
This commit is contained in:
Eugene Zhuravlev
2020-06-09 01:21:34 +03:00
committed by intellij-monorepo-bot
parent db35ecd64b
commit 7afc2b6fba
@@ -65,7 +65,7 @@ public final class JavacMain {
final JpsJavacFileManager fileManager = new JpsJavacFileManager(
new ContextImpl(compiler, diagnosticConsumer, outputSink, modulePath, canceledStatus), javacBefore9, JavaSourceTransformer.getTransformers()
);
if (!platformClasspath.isEmpty()) {
if (javacBefore9 && !platformClasspath.isEmpty()) {
// for javac6 this will prevent lazy initialization of Paths.bootClassPathRtJar
// and thus usage of symbol file for resolution, when this file is not expected to be used
fileManager.handleOption("-bootclasspath", Collections.singleton("").iterator());