What is the \'correct\' way to store a native pointer inside a Java object?
I could treat the pointer as a Java int, if I happen to know that native poi
int
You could look to the way C# handles this with the IntPtr type. By creating your own type for holding pointers, the same type can be used as a 32-bit or 64-bit depending on the system you're on.