-
Notifications
You must be signed in to change notification settings - Fork 223
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
Unable to access methods on the Object class #75
Comments
I see it too:
I guess no one has ever needed to call Object methods. In MethodAccess we could change:
To:
However, this causes something else to fail. It's not clear why and I'm not sure when I'll have a chance to dig deeper. |
First of all, thanks for replying! I know that it's a bit finicky to do this but doing this change worked for me: try {
access.invoke(new EmptyClass(), 0);
fail();
- } catch (IllegalArgumentException expected) {
+ } catch (Exception expected) {
// expected.printStackTrace();
}
try {
access.invoke(new EmptyClass(), 0, "moo");
fail();
- } catch (IllegalArgumentException expected) {
+ } catch (Exception expected) {
// expected.printStackTrace();
}
} Not saying that it should be done this way, but it might help you find the underlying problem. Also, I noticed that the |
Sorry to bump this, any updates on this issue? |
I'm facing a problem where I'm not able to get any method names (and indices) through the following code:
MethodAccess.get(java.lang.Object.class)
Using
getMethodNames()
will return an empty array.The text was updated successfully, but these errors were encountered: