https://kotlinlang.org logo
#korge
Title
# korge
m

Michael Sigl

01/30/2021, 2:24 PM
How can I get access to kotlin reflection like members, isAbstract, isFinal etc. ? When importing kotlin-reflect in build.gradle.kts in Korge, kotlin reflection is only available in jvmMain-module. In commonMain I only have access to qualifiedName and simpleName, but not to all the other things like members etc. How can I get these functions in commonMain-module?
n

Nico

01/30/2021, 2:26 PM
That’s expected behavior. Full reflection is not available and almost certainly will never be due to severe differences on the targets. Full reflection is only available in JVM (for Kotlin)
m

Michael Sigl

01/30/2021, 2:28 PM
Schade. Ich hätte gern Zugriff auf Methoden via String gehabt, um meine State Machine zu verbessern und zu vereinfachen
🇺🇸 1
6 Views