diff --git a/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_6_on_JDK_9.xml b/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_6_on_JDK_9.xml
index 147a6870a61..85093440b79 100644
--- a/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_6_on_JDK_9.xml
+++ b/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_6_on_JDK_9.xml
@@ -13,7 +13,7 @@
-
+
diff --git a/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_8_on_JDK_9.xml b/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_8_on_JDK_9.xml
index bc8dc3dfd83..c2f8c66bca3 100644
--- a/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_8_on_JDK_9.xml
+++ b/.idea/runConfigurations/Codegen_Tests_with_JVM_target_1_8_on_JDK_9.xml
@@ -13,7 +13,7 @@
-
+
diff --git a/.idea/runConfigurations/Codegen_Tests_with_JVM_target_9_on_JDK_9_.xml b/.idea/runConfigurations/Codegen_Tests_with_JVM_target_9_on_JDK_9_.xml
index 39de620113f..059bfa75904 100644
--- a/.idea/runConfigurations/Codegen_Tests_with_JVM_target_9_on_JDK_9_.xml
+++ b/.idea/runConfigurations/Codegen_Tests_with_JVM_target_9_on_JDK_9_.xml
@@ -13,7 +13,7 @@
-
+
diff --git a/build.xml b/build.xml
index d828b15317a..3040972d801 100644
--- a/build.xml
+++ b/build.xml
@@ -413,9 +413,6 @@
-
-
-
diff --git a/compiler/cli/bin/kotlinc b/compiler/cli/bin/kotlinc
index ee34b6cf93e..72e90717c02 100755
--- a/compiler/cli/bin/kotlinc
+++ b/compiler/cli/bin/kotlinc
@@ -68,14 +68,6 @@ else
[ -n "$KOTLIN_COMPILER" ] || KOTLIN_COMPILER=org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
java_args=("${java_args[@]}" "-noverify")
- if [[ -n $(command -v head) && -n $(command -v tail) && $($JAVACMD -version 2>&1 | head -2 | tail -1) =~ build\ 9 ]]; then
- java_args=("${java_args[@]}" \
- "--add-opens" "java.base/java.lang=ALL-UNNAMED" \
- "--add-opens" "java.base/java.util=ALL-UNNAMED" \
- "--add-opens" "java.base/java.util.concurrent.atomic=ALL-UNNAMED" \
- "--add-opens" "java.base/jdk.internal.misc=ALL-UNNAMED")
- fi
-
kotlin_app=("${KOTLIN_HOME}/lib/kotlin-preloader.jar" "org.jetbrains.kotlin.preloading.Preloader" "-cp" "${KOTLIN_HOME}/lib/kotlin-compiler.jar" $KOTLIN_COMPILER)
fi
diff --git a/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/KotlinCompilerClient.kt b/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/KotlinCompilerClient.kt
index 364a1638442..36e321f71ee 100644
--- a/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/KotlinCompilerClient.kt
+++ b/compiler/daemon/daemon-client/src/org/jetbrains/kotlin/daemon/client/KotlinCompilerClient.kt
@@ -22,7 +22,6 @@ import org.jetbrains.kotlin.daemon.common.*
import org.jetbrains.kotlin.load.kotlin.incremental.components.IncrementalCompilationComponents
import org.jetbrains.kotlin.progress.CompilationCanceledStatus
import java.io.File
-import java.io.IOException
import java.io.OutputStream
import java.io.PrintStream
import java.net.SocketException
@@ -48,15 +47,6 @@ object KotlinCompilerClient {
val verboseReporting = System.getProperty(COMPILE_DAEMON_VERBOSE_REPORT_PROPERTY) != null
- val java9RestrictionsWorkaroundOptions =
- if (System.getProperty("java.specification.version") == "9") listOf(
- "--add-opens", "java.base/java.lang=ALL-UNNAMED",
- "--add-opens", "java.base/java.util=ALL-UNNAMED",
- "--add-opens", "java.base/java.util.concurrent.atomic=ALL-UNNAMED",
- "--add-opens", "java.base/jdk.internal.misc=ALL-UNNAMED"
- )
- else emptyList()
-
fun getOrCreateClientFlagFile(daemonOptions: DaemonOptions): File =
// for jps property is passed from IDEA to JPS in KotlinBuildProcessParametersProvider
System.getProperty(COMPILE_DAEMON_CLIENT_ALIVE_PATH_PROPERTY)
@@ -372,7 +362,6 @@ object KotlinCompilerClient {
javaExecutable.absolutePath, "-cp", compilerId.compilerClasspath.joinToString(File.pathSeparator)) +
platformSpecificOptions +
daemonJVMOptions.mappers.flatMap { it.toArgs("-") } +
- java9RestrictionsWorkaroundOptions +
COMPILER_DAEMON_CLASS_FQN +
daemonOptions.mappers.flatMap { it.toArgs(COMPILE_DAEMON_CMDLINE_OPTIONS_PREFIX) } +
compilerId.mappers.flatMap { it.toArgs(COMPILE_DAEMON_CMDLINE_OPTIONS_PREFIX) }