Skip to content

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

Description

@vadi2

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions