OSDN Git Service

Two minor JNI fixes.
authorAndy McFadden <fadden@android.com>
Thu, 17 Dec 2009 19:21:09 +0000 (11:21 -0800)
committerAndy McFadden <fadden@android.com>
Thu, 17 Dec 2009 21:11:47 +0000 (13:11 -0800)
commitac175b4faa3c3c5cc0298fd30a5b38636eeee596
treeefa0b73a962a90c960ec30756c4df575411ebb2e
parent0b089615150666da12ed447cd4cec78b7abbe4e7
Two minor JNI fixes.

(1) In the CheckJNI return type scanner, don't assume that the caller's
class loader is already listed as an initiating loader for the type
being returned.

(2) Make sure the PlatformAddress class is initialized before calling
one of its static methods from NewDirectByteBuffer.
vm/CheckJni.c
vm/Jni.c