-
Notifications
You must be signed in to change notification settings - Fork 321
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
use method handles for reflection #3128
use method handles for reflection #3128
Conversation
Signed-off-by: Christian Dietrich <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very nice and will perform better.
I think we can simplify this a bit more:
I'll push to this branch. WDYT? |
Signed-off-by: Sebastian Zarnekow <[email protected]>
4d8a96d
to
a5f7d42
Compare
@szarnekow do you think we still will be able to detect future breakages? |
order was wrong. have reversed |
We can remove the fallback to MethodHandles.constant and throw an exception. Or use Java assertions in the catch block (assuming the tests run with assertions enabled) |
Yes, that'll certainly break if things change in an incompatible way. |
No description provided.