From 8749bd901b0e0067d6d660764070320a40b44dfe Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 12 Jun 2018 12:49:52 +0200 Subject: [PATCH] Fix MalformedParameterizedTypeException on classes from kotlin-reflect This allows GraalVM's `native-image` to work correctly on kotlin-reflect.jar. The size of the artifact has increased only by 66 bytes #KT-23962 Fixed --- core/reflection.jvm/reflection.pro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/reflection.jvm/reflection.pro b/core/reflection.jvm/reflection.pro index d2c319add8b..25caf9604bb 100644 --- a/core/reflection.jvm/reflection.pro +++ b/core/reflection.jvm/reflection.pro @@ -31,3 +31,7 @@ public boolean containsKey(java.lang.Object); public kotlin.reflect.jvm.internal.pcollections.HashPMap minus(java.lang.Object); } + +# This is needed because otherwise ProGuard strips generic signature of this class (even though we pass `-keepattributes Signature` above) +# See KT-23962 and https://sourceforge.net/p/proguard/bugs/482/ +-keep class kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$ExtendableMessageOrBuilder