Parcelize: Always map primitive array element types as boxed types for Array<T> (#KT-23808)

This commit is contained in:
Yan Zhulanow
2018-04-16 23:00:48 +03:00
parent d5f0495031
commit defe97e4ef
3 changed files with 40 additions and 1 deletions
@@ -113,7 +113,7 @@ interface ParcelSerializer {
asmType.sort == Type.ARRAY -> {
val elementType = type.builtIns.getArrayElementType(type)
val elementSerializer = get(elementType, typeMapper.mapTypeSafe(elementType, forceBoxed = false), context, strict = strict())
val elementSerializer = get(elementType, typeMapper.mapTypeSafe(elementType, forceBoxed = true), context, strict = strict())
wrapToNullAwareIfNeeded(type, ArrayParcelSerializer(asmType, elementSerializer))
}