gonzalo diethelm wrote: >> Is there any guarantee that Java 'long' type can hold a pointer? I am >> not an expert on Java but storing pointer in a signed integer just >> doesn't sound right. > > No guarantees, but there seems to be no other way. I don't know what > would happen in a 64 bit environment. I can only say two things in "my > defense": > > 1. It was already done that way in the Java binding. The final lines in > Context.java used to be: > > /** Opaque data used by JNI driver. */ > private long contextHandle; > > 2. It is the only way I could find that is "documented" on the Internet. > For example: > > http://forums.sun.com/thread.jspa?threadID=5333492
Wow. The page has Oracle look and feel already... > http://www.experts-exchange.com/Programming/Languages/Java/Q_20188025.ht > ml A-ha. True. I recall we've discussed this when implementing the Java binding and that we haven't found a better solution. Martin _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
