Parcelable: Use ClassLoader from the container class to load Parcelable (KT-20027)

When the parameter type is just "Parcelable", we would not pick the wrong (system) class loader anymore.
This commit is contained in:
Yan Zhulanow
2017-09-01 22:28:04 +03:00
committed by Yan Zhulanow
parent c9ec1a2511
commit 3587a2a08e
7 changed files with 111 additions and 15 deletions
@@ -0,0 +1,9 @@
// CURIOUS_ABOUT writeToParcel, createFromParcel, <clinit>
package test
import kotlinx.android.parcel.*
import android.os.Parcelable
@Parcelize
class Foo(val parcelable: Parcelable): Parcelable