diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/Function.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/Function.kt index d31153d57dc..448717c0c2b 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/Function.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/Function.kt @@ -5,12 +5,9 @@ package kotlin -import kotlin.native.internal.FixmeReflection - /** * Represents a value of a functional type, such as a lambda, an anonymous function or a function reference. * * @param R return type of the function. */ -@FixmeReflection public interface Function diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/coroutines/SuspendFunction.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/coroutines/SuspendFunction.kt index eab05e728c7..3cd5d360ef0 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/coroutines/SuspendFunction.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/coroutines/SuspendFunction.kt @@ -5,12 +5,9 @@ package kotlin.coroutines -import kotlin.native.internal.FixmeReflection - /** * Represents a value of a functional type, such as a lambda, an anonymous function or a function reference. * * @param R return type of the function. */ -@FixmeReflection public interface SuspendFunction diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/Annotations.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/Annotations.kt index 60c476f4574..40b9b3bc96d 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/Annotations.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/Annotations.kt @@ -81,13 +81,6 @@ internal annotation class ExportTypeInfo(val name: String) @Retention(AnnotationRetention.BINARY) internal annotation class VolatileLambda -/** - * Need to be fixed because of reflection. - */ -@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS) -@Retention(AnnotationRetention.SOURCE) -internal annotation class FixmeReflection - /** * Need to be fixed because of concurrency. */ diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KFunctionImpl.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KFunctionImpl.kt index 5c5e0e6fd3c..0aef71106fc 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KFunctionImpl.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KFunctionImpl.kt @@ -16,7 +16,6 @@ internal class KFunctionDescription( val returnType: KType ) -@FixmeReflection internal abstract class KFunctionImpl(val description: KFunctionDescription): KFunction { final override val returnType get() = description.returnType val flags get() = description.flags diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KPropertyImpl.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KPropertyImpl.kt index 92c24fa3e24..be41bfeba51 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KPropertyImpl.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KPropertyImpl.kt @@ -8,7 +8,6 @@ package kotlin.native.internal import kotlin.UnsupportedOperationException import kotlin.reflect.* -@FixmeReflection abstract class KProperty0ImplBase : KProperty0 { abstract val getter: KFunction0 override val returnType get() = getter.returnType @@ -22,7 +21,6 @@ abstract class KProperty0ImplBase : KProperty0 { } } -@FixmeReflection final class KProperty0Impl(override val name: String, override val getter: KFunction0) : KProperty0ImplBase() { override fun equals(other: Any?): Boolean { val otherKProperty = other as? KProperty0Impl<*> @@ -39,7 +37,6 @@ final class KProperty0Impl(override val name: String, override val getter } } -@FixmeReflection abstract class KProperty1ImplBase : KProperty1 { abstract val getter: KFunction1 override val returnType get() = getter.returnType @@ -53,7 +50,6 @@ abstract class KProperty1ImplBase : KProperty1 { } } -@FixmeReflection class KProperty1Impl(override val name: String, override val getter: KFunction1) : KProperty1ImplBase() { override fun equals(other: Any?): Boolean { val otherKProperty = other as? KProperty1Impl<*, *> @@ -71,7 +67,6 @@ class KProperty1Impl(override val name: String, override val getter: K } -@FixmeReflection abstract class KProperty2ImplBase : KProperty2 { abstract val getter: KFunction2 override val returnType get() = getter.returnType @@ -85,7 +80,6 @@ abstract class KProperty2ImplBase : KProperty2 { } } -@FixmeReflection class KProperty2Impl(override val name: String, override val getter: KFunction2) : KProperty2ImplBase() { override fun equals(other: Any?): Boolean { @@ -104,7 +98,6 @@ class KProperty2Impl(override val name: String, override val gett } -@FixmeReflection class KMutableProperty0Impl(override val name: String, override val getter: KFunction0, val setter: (R) -> Unit) : KProperty0ImplBase(), KMutableProperty0 { override fun set(value: R): Unit { @@ -126,7 +119,6 @@ class KMutableProperty0Impl(override val name: String, override val getter: K } } -@FixmeReflection class KMutableProperty1Impl(override val name: String, override val getter: KFunction1, val setter: (T, R) -> Unit) : KProperty1ImplBase(), KMutableProperty1 { override fun set(receiver: T, value: R): Unit { @@ -148,7 +140,6 @@ class KMutableProperty1Impl(override val name: String, override val getter } } -@FixmeReflection class KMutableProperty2Impl( override val name: String, override val getter: KFunction2, diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KSuspendFunctionImpl.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KSuspendFunctionImpl.kt index 8939179d2d3..6c58dcde751 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KSuspendFunctionImpl.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/KSuspendFunctionImpl.kt @@ -9,7 +9,6 @@ import kotlin.reflect.KType import kotlin.reflect.KFunction import kotlin.reflect.KClass -@FixmeReflection internal abstract class KSuspendFunctionImpl(description: KFunctionDescription): KFunctionImpl(description) { override fun toString() = "suspend function $name" } diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KAnnotatedElement.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KAnnotatedElement.kt index fee9cd66ecf..57ce9fafb27 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KAnnotatedElement.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KAnnotatedElement.kt @@ -5,12 +5,9 @@ package kotlin.reflect -import kotlin.native.internal.FixmeReflection - /** * Represents an annotated element and allows to obtain its annotations. * See the [Kotlin language documentation](https://kotlinlang.org/docs/reference/annotations.html) * for more information. */ -@FixmeReflection public interface KAnnotatedElement \ No newline at end of file diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KCallable.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KCallable.kt index a3ca665e6d4..446e2d889c5 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KCallable.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KCallable.kt @@ -5,8 +5,6 @@ package kotlin.reflect -import kotlin.native.internal.FixmeReflection - /** * Represents a callable entity, such as a function or a property. * diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KProperty.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KProperty.kt index 021f454a6db..1b09d0d677a 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KProperty.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/reflect/KProperty.kt @@ -5,8 +5,6 @@ package kotlin.reflect -import kotlin.native.internal.FixmeReflection - /** * Represents a property, such as a named `val` or `var` declaration. * Instances of this class are obtainable by the `::` operator.