Move Intrinsic annotation to javaClass property from its getter

This is needed because the property, not its getter, is used as a key to the
intrinsics map when codegen decides how to generate a method call. Earlier it
worked because annotations on getters of properties loaded from bytecode were
mistakenly added to annotations on properties themselves
This commit is contained in:
Alexander Udalov
2013-07-15 19:47:16 +04:00
parent cfe9d78015
commit d49a2ed613
+2 -2
View File
@@ -5,8 +5,8 @@ import java.lang.Object
import jet.runtime.Intrinsic
public val <T> T.javaClass : Class<T>
[Intrinsic("kotlin.javaClass.property")] get() = (this as java.lang.Object).getClass() as Class<T>
[Intrinsic("kotlin.javaClass.property")] public val <T> T.javaClass : Class<T>
get() = (this as java.lang.Object).getClass() as Class<T>
[Intrinsic("kotlin.javaClass.function")] fun <T> javaClass() : Class<T> = null as Class<T>