Skip to content
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

Allow the Object class to be used with MethodAccess#get(Class) #65

Merged
merged 2 commits into from Sep 10, 2018

Conversation

crykn
Copy link
Contributor

@crykn crykn commented Sep 10, 2018

As part of #ade0542 primitive types, Void and the Object class were no longer allowed to be used with MethodAccess#get(Class). This was done to mirror similar changes to FieldAccess as a fix to #59.

But there actually seems to be no good reason to exclude the Object class, as there are legitimate use cases: For example this KryoNet test tries to invoke the Object#hashCode()-Method via RMI. This requires ObjectSpace to use MethodAccess#get(Class), where the class is Object.class.

@NathanSweet NathanSweet merged commit 065b17b into EsotericSoftware:master Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants