-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove kotlin-reflect dependency #141
Comments
For my point of view, #104 should be implemented first: kotlinx.serialization does not depend of kotlin-reflect |
That would be awesome! :) |
@richarddd Not yet. These are still some reflection involved when checking ids and some other corner cases. (see https://github.com/Litote/kmongo/releases/tag/kmongo-3.11.1 ). Expect a workaround in the next version ;) |
@zigzago This should be opened again. All mappers heavily rely on kotlin-reflect. I looked at the source and the main reason why is that all mappers currently need to get the java ower class from a |
@richarddd what is the status of your efforts to create a native image with graalvm and kmongo? |
KProperty1
could be used without all the other classes from kotlin-reflect.We could use standard java reflection to deal with registration of pojos etc.
The reason why this is an issue is that it adds lots of complexity.
It also does not work when compiling and image with GraalVMs native-image makes the native-image huge:
The text was updated successfully, but these errors were encountered: