Join Slack
Communities
Powered by
I would like to reflect over nullability at runtim...
# compiler
m
mikehearn
02/10/2022, 12:38 PM
I would like to reflect over nullability at runtime, but, without using Kotlin reflection (which is very slow and anyway, reduces java interop). Unfortunately the compiler produces org.jetbrains.annotation.Nullable which isn't retained at runtime.
w
wasyl
02/10/2022, 1:34 PM
Not answering the original question about changing nullability annotation, but you might be interested in Reflekt perhaps
https://github.com/JetBrains-Research/reflekt
m
mikehearn
02/10/2022, 3:30 PM
ah, interesting! thanks! you're right, that's interesting
e
elizarov
02/11/2022, 6:48 AM
We are also working to stabilize
https://github.com/JetBrains/kotlin/blob/master/libraries/kotlinx-metadata/jvm/ReadMe.md
It is a fast, low-level way to read Kotlin metadata.
👌 2
👀 3
Open in Slack
Previous
Next