[zeromq-dev] JZMQ and storing pointers in Java

Martin Sustrik sustrik at 250bpm.com
Sun Oct 2 12:13:54 CEST 2011


Hi,

I've accidentally found this blog that suggests that storing pointers in 
java 'long' type is eventually faulty -- which is exactly what we do in 
JZMQ. The proposed solution is to use ByteBuffer instead:

http://clebertsuconic.blogspot.com/2010/05/pointers-in-jni-c.html

Martin



More information about the zeromq-dev mailing list