MPP: Retain KotlinSourceSetInfo for Android in data nodes

User data is not serialized which leads to broken import on reopening

 #KT-27213 Fixed
This commit is contained in:
Alexey Sedunov
2018-09-27 20:04:33 +03:00
parent c183c5b36a
commit c59779f5b9
5 changed files with 25 additions and 10 deletions
@@ -16,11 +16,12 @@
package org.jetbrains.kotlin.cli.common.arguments
import java.io.Serializable
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
abstract class Freezable {
protected open inner class FreezableVar<T>(private var value: T) : ReadWriteProperty<Any, T> {
protected open inner class FreezableVar<T>(private var value: T) : ReadWriteProperty<Any, T>, Serializable {
override fun getValue(thisRef: Any, property: KProperty<*>) = value
override fun setValue(thisRef: Any, property: KProperty<*>, value: T) {