[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Runtime reference implementation buglet
From: |
Eric Blake |
Subject: |
Re: Runtime reference implementation buglet |
Date: |
Sun, 28 Apr 2002 11:44:19 -0600 |
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 <address@hidden> 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 address@hidden
BYU student, free software programmer