fitermay
07/20/2023, 2:23 PMprivate fun getStringProp(prop: String): String? {
return try {
propGetMethodHandle.invokeExact(prop, null as String?) as String?
} catch (e: Exception) {
Log.e(TAG, "Error invoking SystemProperties", e)
return null
}
}
compiles to
INVOKEVIRTUAL java/lang/invoke/MethodHandle.invokeExact ([Ljava/lang/Object;)Ljava/lang/Object;
Any idea why this may be? I thought PolymorphicSignature methods are supported
ephemient
07/20/2023, 2:43 PMjavap -v
reports
16: invokevirtual #26 // Method java/lang/invoke/MethodHandle.invokeExact:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
on that example for mefitermay
07/20/2023, 3:10 PMfitermay
07/20/2023, 5:07 PMephemient
07/20/2023, 5:55 PMfitermay
07/20/2023, 5:56 PMfitermay
07/20/2023, 5:57 PMfitermay
07/20/2023, 5:58 PMephemient
07/20/2023, 6:11 PMkotlinc -no-jdk -cp .../android.jar
, so it does seem to be an issue with the Android SDK or in how Kotlin handles using it instead of JAVA_HOMEfitermay
07/20/2023, 6:15 PMephemient
07/20/2023, 6:32 PMfitermay
07/20/2023, 6:36 PMfitermay
07/26/2023, 3:31 PM