fix native method name ambiguity

sun.misc.Unsafe now has two native getByte methods: one which takes a
long and another which takes an Object and a long.  Thus, we need to
decorate each version with its parameter signature so we don't
accidentally call the wrong one at runtime.
This commit is contained in:
Joel Dice 2012-06-12 16:33:31 -06:00
parent 9dd3d04324
commit 7bfb5a6287

View File

@ -2591,7 +2591,7 @@ Avian_sun_misc_Unsafe_putFloat__Ljava_lang_Object_2JF
}
extern "C" JNIEXPORT int64_t JNICALL
Avian_sun_misc_Unsafe_getByte
Avian_sun_misc_Unsafe_getByte__Ljava_lang_Object_2J
(Thread*, object, uintptr_t* arguments)
{
object o = reinterpret_cast<object>(arguments[1]);
@ -2601,14 +2601,15 @@ Avian_sun_misc_Unsafe_getByte
}
extern "C" JNIEXPORT int64_t JNICALL
Avian_sun_misc_Unsafe_getBoolean
Avian_sun_misc_Unsafe_getBoolean__Ljava_lang_Object_2J
(Thread* t, object method, uintptr_t* arguments)
{
return Avian_sun_misc_Unsafe_getByte(t, method, arguments);
return Avian_sun_misc_Unsafe_getByte__Ljava_lang_Object_2J
(t, method, arguments);
}
extern "C" JNIEXPORT void JNICALL
Avian_sun_misc_Unsafe_putBoolean
Avian_sun_misc_Unsafe_putBoolean__Ljava_lang_Object_2JZ
(Thread*, object, uintptr_t* arguments)
{
object o = reinterpret_cast<object>(arguments[1]);