Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
There was an error while loading. Please reload this page.
We can't use a
Dictionary<int, IJavaObject>mapping between JNI handles wherein the dictionary key is the result ofSystem.identityHashCode(), as it's possible for multiple Java objects to share the sameSystem.identityHashCode()value. (Rare...but possible, and will only get more possible.)We need to move to a system that uses
JNIEnv::IsSameObject()to ensure we lookup the correct instance for a given JNI handle.