Skip to content

Don't use reflection to call Iterable.collectionClassName #80

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

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

alexarchambault
Copy link
Contributor

This PR makes the calls to Iterable.collectionClassName more "standard", that is not reflection-based.

Reflection is an issue on GraalVM native-image, where all collection concrete classes would need to be added to some Graal reflection config for collectionClassName to be call-able by reflection.

Copy link
Member

@lolgab lolgab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@sebastianvoss
Copy link

Thanks for your effort! Are there plan to merge this? I would be helpful to use this lib in native images.

This is an issue on GraalVM, where all collection concrete classes would
need to be added to some Graal reflection config for collectionClassName
to be call-able by reflection.
@lolgab lolgab merged commit b7d8ea6 into com-lihaoyi:master Nov 27, 2022
@sebastianvoss
Copy link

@lolgab Great stuff, thanks for merging. I just tested and it works in native environments now.

@alexarchambault alexarchambault deleted the no-reflection branch November 28, 2022 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants