< prev index next >
src/java.base/share/native/libjava/Object.c
Print this page
*** 37,61 ****
#include "jni_util.h"
#include "jvm.h"
#include "java_lang_Object.h"
- static JNINativeMethod methods[] = {
- {"hashCode", "()I", (void *)&JVM_IHashCode},
- {"wait", "(J)V", (void *)&JVM_MonitorWait},
- {"notify", "()V", (void *)&JVM_MonitorNotify},
- {"notifyAll", "()V", (void *)&JVM_MonitorNotifyAll},
- {"clone", "()Ljava/lang/Object;", (void *)&JVM_Clone},
- };
-
- JNIEXPORT void JNICALL
- Java_java_lang_Object_registerNatives(JNIEnv *env, jclass cls)
- {
- (*env)->RegisterNatives(env, cls,
- methods, sizeof(methods)/sizeof(methods[0]));
- }
-
JNIEXPORT jclass JNICALL
Java_java_lang_Object_getClass(JNIEnv *env, jobject this)
{
if (this == NULL) {
JNU_ThrowNullPointerException(env, NULL);
--- 37,46 ----
< prev index next >