Report error on using reflection without kotlin-reflect.jar in classpath

Should be a warning because strictly speaking, the codegen doesn't need it
during the compilation. It's an error at the moment only to let all clients of
Kotlin reflection know that they must include kotlin-reflect.jar in the
classpath
This commit is contained in:
Alexander Udalov
2015-03-12 22:29:49 +03:00
parent 9d6f4e99a1
commit 094fa2f92b
9 changed files with 63 additions and 17 deletions
@@ -17,6 +17,8 @@
package org.jetbrains.kotlin.load.java;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.kotlin.name.ClassId;
import org.jetbrains.kotlin.name.FqName;
import org.jetbrains.kotlin.name.Name;
public final class JvmAbi {
@@ -41,6 +43,7 @@ public final class JvmAbi {
public static final String KOTLIN_CLASS_FIELD_NAME = "$kotlinClass";
public static final String KOTLIN_PACKAGE_FIELD_NAME = "$kotlinPackage";
public static final ClassId REFLECTION_FACTORY_IMPL = ClassId.topLevel(new FqName("kotlin.reflect.jvm.internal.ReflectionFactoryImpl"));
//TODO: To be removed after kotlin M11
@Deprecated