Which way do VM's do it? It might be easier to do "if (nativeLoad(filename) != 0)", so that the native code can just use the return code from system calls.
Brian Jones wrote: > > Tom Tromey <[EMAIL PROTECTED]> writes: > > > In the Runtime reference implementation I see this code: > > > > if (nativeLoad(filename) == 0) > > throw new UnsatisfiedLinkError("Could not load library " + filename); > > > > Later there is this: > > > > * @return 0 on success, nonzero on failure > > */ > > native int nativeLoad(String filename); > > > > One or the other is wrong. I don't know which. Could whoever works > > on this class please fix this? Thanks. > > I changed the doc comment since changing the code would break VMs. > > Brian -- This signature intentionally left boring. Eric Blake [EMAIL PROTECTED] BYU student, free software programmer _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath