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

luajava.createProxy() does not create Object.hashCode/equals() #1

Open
vadi2 opened this issue Feb 5, 2012 · 0 comments
Open

luajava.createProxy() does not create Object.hashCode/equals() #1

vadi2 opened this issue Feb 5, 2012 · 0 comments

Comments

@vadi2
Copy link

vadi2 commented Feb 5, 2012

It seems that luajava.createProxy() does not create the appropriate object.hashCode() method - or it is wrong. Either way, calling hashCode() in a Dalvik VM was resulting in an NPE:

java.lang.NullPointerException: null result when primitive expected at $Proxy2.hashCode(Native Method)

This can be worked around by implementing hashCode() function in the table that you pass to createProxy.

edti: same is with the case of equals()

Is this by design?

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

No branches or pull requests

1 participant