aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/register2.c
AgeCommit message (Collapse)AuthorFilesLines
2007-01-09Merged gcj-eclipse branch to trunk.Tom Tromey1-1/+1
From-SVN: r120621
2006-10-18register2.java: New file.Tom Tromey1-0/+48
* testsuite/libjava.jni/register2.java: New file. * testsuite/libjava.jni/register2.out: New file. * testsuite/libjava.jni/register2.c: New file. * java/lang/natClass.cc (_Jv_GetClassNameUtf8): New function. * java/lang/Class.h (_Jv_GetClassNameUtf8): Declare. * jni.cc (struct NativeMethodCacheEntry): New struct. (nathash): Changed type. (hash): Updated. (nathash_find_slot): Likewise. (nathash_find): Likewise. (natrehash): Likewise. (nathash_add): Likewise. (_Jv_JNI_RegisterNatives): Likewise. (_Jv_LookupJNIMethod): Likewise. Idea from Juerg Lehni <juerg@scratchdisk.com> Co-Authored-By: Bryce McKinlay <mckinlay@redhat.com> From-SVN: r117867