JNI/Win32 Patch #2: Fix lookup of "JNI_OnLoad" on loading a JNI DLL
Tom Tromey
tromey@redhat.com
Sun Dec 8 12:14:00 GMT 2002
>>>>> "Ranjit" == Ranjit Mathew <rmathew@hotmail.com> writes:
Ranjit> I'm sorry, but I overlooked the fact that the JNI_OnLoad
Ranjit> function itself must be called using the "stdcall" convention.
These patches generally look fine to me. I think we should wait for
the paperwork to clear before putting them in, though.
Ranjit> +#ifdef WIN32
Ranjit> + jint vers = ((jint (__attribute__((stdcall)) *) (JavaVM *, void *))
Ranjit> + onload) (vm, NULL);
Let's use `JNICALL' here and avoid the #ifdef.
Tom
More information about the Java-patches
mailing list