Revert "Java Direct: enable by default in CLI pipeline" This reverts commit ea2431e13876e59566fa18ade70e50063d06eb31.
diff --git a/compiler/arguments/resources/kotlin-compiler-arguments.json b/compiler/arguments/resources/kotlin-compiler-arguments.json index 57c88e8..ef22838 100644 --- a/compiler/arguments/resources/kotlin-compiler-arguments.json +++ b/compiler/arguments/resources/kotlin-compiler-arguments.json
@@ -8121,7 +8121,7 @@ "valueInVersions": [] }, "defaultValue": { - "current": true, + "current": false, "valueInVersions": [] } }, @@ -8142,7 +8142,7 @@ "valueInVersions": [] }, "defaultValue": { - "current": true, + "current": false, "valueInVersions": [] } },
diff --git a/compiler/arguments/src/org/jetbrains/kotlin/arguments/description/JvmCompilerArguments.kt b/compiler/arguments/src/org/jetbrains/kotlin/arguments/description/JvmCompilerArguments.kt index 11e907e..08e8237 100644 --- a/compiler/arguments/src/org/jetbrains/kotlin/arguments/description/JvmCompilerArguments.kt +++ b/compiler/arguments/src/org/jetbrains/kotlin/arguments/description/JvmCompilerArguments.kt
@@ -10,7 +10,6 @@ import org.jetbrains.kotlin.arguments.dsl.defaultFalse import org.jetbrains.kotlin.arguments.dsl.defaultNull import org.jetbrains.kotlin.arguments.dsl.defaultOne -import org.jetbrains.kotlin.arguments.dsl.defaultTrue import org.jetbrains.kotlin.arguments.dsl.types.* import org.jetbrains.kotlin.cli.common.arguments.Enables import org.jetbrains.kotlin.config.LanguageFeature @@ -986,7 +985,7 @@ compilerArgument { name = "Xjava-direct" description = "Experimental direct java support.".asReleaseDependent() - valueType = BooleanType.defaultTrue + valueType = BooleanType.defaultFalse lifecycle( introducedVersion = KotlinReleaseVersion.v2_5_0,
diff --git a/compiler/cli/cli-base/gen/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt b/compiler/cli/cli-base/gen/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt index 830250e..de06ad3 100644 --- a/compiler/cli/cli-base/gen/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt +++ b/compiler/cli/cli-base/gen/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt
@@ -230,7 +230,7 @@ value = "-Xjava-direct", description = "Experimental direct java support.", ) - var javaDirect: Boolean = true + var javaDirect: Boolean = false set(value) { checkFrozen() field = value
diff --git a/compiler/config.jvm/gen/org/jetbrains/kotlin/config/JVMConfigurationKeys.kt b/compiler/config.jvm/gen/org/jetbrains/kotlin/config/JVMConfigurationKeys.kt index 872766d..a971cb4 100644 --- a/compiler/config.jvm/gen/org/jetbrains/kotlin/config/JVMConfigurationKeys.kt +++ b/compiler/config.jvm/gen/org/jetbrains/kotlin/config/JVMConfigurationKeys.kt
@@ -349,6 +349,6 @@ set(value) { put(JVMConfigurationKeys.USE_METADATA_ON_INCREMENTAL_CLASSPATH, value) } var CompilerConfiguration.useJavaDirect: Boolean - get() = get(JVMConfigurationKeys.USE_JAVA_DIRECT, true) + get() = getBoolean(JVMConfigurationKeys.USE_JAVA_DIRECT) set(value) { put(JVMConfigurationKeys.USE_JAVA_DIRECT, value) }
diff --git a/compiler/config/configuration-keys-generator/src/org/jetbrains/kotlin/config/keys/generator/JvmConfigurationKeysContainer.kt b/compiler/config/configuration-keys-generator/src/org/jetbrains/kotlin/config/keys/generator/JvmConfigurationKeysContainer.kt index e124024..ba102f3 100644 --- a/compiler/config/configuration-keys-generator/src/org/jetbrains/kotlin/config/keys/generator/JvmConfigurationKeysContainer.kt +++ b/compiler/config/configuration-keys-generator/src/org/jetbrains/kotlin/config/keys/generator/JvmConfigurationKeysContainer.kt
@@ -58,5 +58,5 @@ val IGNORED_ANNOTATIONS_FOR_BRIDGES by key<List<String>>("Annotations fqNames that shall be skipped while copying the annotations from the target to the bridge functions.") val IC_METADATA_TRACKER by key<ICJvmMetadataTracker>("Tracks generated in-module JVM metadata for KMP JVM IC", throwOnNull = false) val USE_METADATA_ON_INCREMENTAL_CLASSPATH by key<Boolean>("Use fragment metadata found on the compilation classpath to perform incremental compilation") - val USE_JAVA_DIRECT by key<Boolean>("Use java-direct as frontend Java facade", defaultValue = "true") + val USE_JAVA_DIRECT by key<Boolean>("Use java-direct as frontend Java facade") }