smallrye-config icon indicating copy to clipboard operation
smallrye-config copied to clipboard

Add support for Kotlin nullable types

Open mschorsch opened this issue 3 years ago • 1 comments

See https://github.com/quarkusio/quarkus/issues/27319

mschorsch avatar Nov 10 '22 05:11 mschorsch

I looked into this, and supporting it may require some work. Unfortunately, there doesn't seem to exist a way to determine if a type is nullable or not on the Java side https://youtrack.jetbrains.com/issue/KT-14909.

Either we need to create a separate module to access the Kotlin API and query Kotlin reflection, or we need to provide an annotation processor and look for the nullable annotations. On top of this, the mapping API will require some changes to allow consuming external metadata and merging it with the metadata read from Java.

It would be great if someone helps with this. Or maybe even have a better idea of how to support it.

radcortez avatar Jul 05 '23 19:07 radcortez