CLI, Ant: add kotlin-reflect.jar to classpath by default, support "-no-reflect"
Note that now "-no-stdlib" implies "-no-reflect". #KT-13237 Fixed
This commit is contained in:
Vendored
+1
@@ -6,6 +6,7 @@ where possible options include:
|
||||
-jdk-home <path> Path to JDK home directory to include into classpath, if differs from default JAVA_HOME
|
||||
-no-jdk Don't include Java runtime into classpath
|
||||
-no-stdlib Don't include Kotlin runtime into classpath
|
||||
-no-reflect Don't include Kotlin reflection implementation into classpath
|
||||
-module <path> Path to the module file to compile
|
||||
-script Evaluate the script file
|
||||
-kotlin-home <path> Path to Kotlin compiler home directory, used for runtime libraries discovery
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
-no-reflect
|
||||
$TESTDATA_DIR$/noReflect.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import kotlin.reflect.*
|
||||
|
||||
fun foo() {
|
||||
String::class.primaryConstructor
|
||||
listOf(42)
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
compiler/testData/cli/jvm/noReflect.kt:4:19: error: unresolved reference: primaryConstructor
|
||||
String::class.primaryConstructor
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
-no-stdlib
|
||||
$TESTDATA_DIR$/noStdlib.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import kotlin.reflect.*
|
||||
|
||||
fun foo() {
|
||||
String::class.primaryConstructor
|
||||
listOf(42)
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
compiler/testData/cli/jvm/noStdlib.kt:4:19: error: unresolved reference: primaryConstructor
|
||||
String::class.primaryConstructor
|
||||
^
|
||||
compiler/testData/cli/jvm/noStdlib.kt:5:5: error: unresolved reference: listOf
|
||||
listOf(42)
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
+1
@@ -7,6 +7,7 @@ where possible options include:
|
||||
-jdk-home <path> Path to JDK home directory to include into classpath, if differs from default JAVA_HOME
|
||||
-no-jdk Don't include Java runtime into classpath
|
||||
-no-stdlib Don't include Kotlin runtime into classpath
|
||||
-no-reflect Don't include Kotlin reflection implementation into classpath
|
||||
-module <path> Path to the module file to compile
|
||||
-script Evaluate the script file
|
||||
-kotlin-home <path> Path to Kotlin compiler home directory, used for runtime libraries discovery
|
||||
|
||||
Reference in New Issue
Block a user