Given a java object A a = new A()
, and a bunch of native instance methods, if I were to take the address of the jobject
representing a
passed into those methods, would the address always be the same?
I have multiple final fields in these classes that I want to store in a hashmap in my C code (so I don't have to continue fetching them with Get___Field
), with the hash of a jobject
being the address. If I can guarantee that the address of a passed in jobject
representing a
will always be the same, then the hash is deterministic, which means my program's behavior will not be inconsistent.