Pass a pointer to JNI_GetCreatedJavaVMs() instead of null
youdwei at linux.vnet.ibm.com
Mon May 7 09:38:46 UTC 2012
There is a potential problem in
(Maybe it is not suitable for posting this on core-lib, anyone could
tell me which mailing list is prefer?)
JNI_GetCreatedJavaVMs(&vm, 1, null) in which the 3rd parameter is a
pointer to an integer. See, the latest JNI Invocation API spec does
not say anything about allowing a null as the last parameter.
I think it is more reasonable to change null to an integer variable.
Here is my fix
Please review this mail!
Thanks a lot!
More information about the core-libs-dev