The GetDirectBufferAddress JNI function was using the buffer's base
address, rather than it's "effective" base address. The difference
becomes important when you create a direct buffer by "slicing" it off
of another at a nonzero offset.
For internal bug
1898762.
return 0;
}
- tempMethod = (*env)->GetMethodID(env, tempClass, "getBaseAddress",
+ tempMethod = (*env)->GetMethodID(env, tempClass, "getEffectiveAddress",
"()Lorg/apache/harmony/luni/platform/PlatformAddress;");
if(!tempMethod){
return 0;