Skip to content

Cannot create native image when has a code that invoke default method using reflection #1353

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

Closed
kazuki43zoo opened this issue Jun 4, 2019 · 3 comments

Comments

@kazuki43zoo
Copy link

I'am the MyBatis commiter and I consider supporting GraalVM. But the MyBatis has code that invoke the default method using reflection feature and it become build error. A small reproduce project is here.

Can I resolve this problem? or Is this behavior is limitation of GraalVM?

@cstancu
Copy link
Member

cstancu commented Jun 4, 2019

Uses of reflection need to be configured. You can read more about reflection here. We also provide an agent that you can use to track reflective accesses and generate reflection configuration automatically.

@cstancu cstancu self-assigned this Jun 4, 2019
@kazuki43zoo
Copy link
Author

@cstancu Thanks for your quick answer!! I will read the documentation and try it. Thanks again!

@cstancu
Copy link
Member

cstancu commented Aug 29, 2019

@kazuki43zoo I will close this issue. Please open a new issue if you have specific questions.

@cstancu cstancu closed this as completed Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants