J2K KotlinJvmBinaryClass & AnnotationAndConstantLoader: convert

This commit is contained in:
Alexander Udalov
2016-04-06 14:48:31 +03:00
parent 9c7e4f3dcc
commit 2ab68d53fa
9 changed files with 93 additions and 112 deletions
@@ -182,7 +182,8 @@ object InlineTestUtil {
val klass = FileBasedKotlinClass.create(file.asByteArray()) {
className, classHeader, innerClasses ->
object : FileBasedKotlinClass(className, classHeader, innerClasses) {
override fun getLocation(): String = throw UnsupportedOperationException()
override val location: String
get() = throw UnsupportedOperationException()
override fun getFileContents(): ByteArray = throw UnsupportedOperationException()
override fun hashCode(): Int = throw UnsupportedOperationException()
override fun equals(other: Any?): Boolean = throw UnsupportedOperationException()