mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-25 20:14:46 +08:00
a29114a3be
2007-03-05 Andrew Haley <aph@redhat.com> * java/lang/reflect/natVMProxy.cc (ncode_closure.meth): Delete. (generateProxyClass): Don't pass method to ncode. (run_proxy): Call _Jv_GetReflectedMethod to find the proxy method. * java/lang/reflect/Method.h: Rebuild. * java/lang/reflect/Method.java (internalGetParameterTypes, internalGetExceptionTypes): New methods. * headers.txt (class java/lang/reflect/Method): Declare _Jv_GetReflectedMethod. Be its friend. * java/lang/natClass.cc (_Jv_GetReflectedMethod): New method. * java/lang/Class.h: Declare it. Be its friend. From-SVN: r122554
68 lines
3.7 KiB
Plaintext
68 lines
3.7 KiB
Plaintext
class java/lang/ClassLoader
|
|
prepend jclass _Jv_FindClass (_Jv_Utf8Const *name, java::lang::ClassLoader *loader);
|
|
prepend void _Jv_RunMain (jclass klass, const char *name, int argc, const char **argv, bool is_jar);
|
|
friend jclass (::_Jv_FindClass) (_Jv_Utf8Const *name, java::lang::ClassLoader *loader);
|
|
friend void ::_Jv_RunMain (jclass klass, const char *name, int argc, const char **argv, bool is_jar);
|
|
|
|
class java/lang/Thread
|
|
prepend class _Jv_JNIEnv;
|
|
prepend #define _JV_NOT_OWNER 1
|
|
prepend #define _JV_INTERRUPTED 2
|
|
prepend _Jv_JNIEnv * _Jv_GetCurrentJNIEnv ();
|
|
prepend void _Jv_SetCurrentJNIEnv (_Jv_JNIEnv *env);
|
|
prepend void _Jv_ThreadRun (java::lang::Thread* thread);
|
|
prepend jint _Jv_AttachCurrentThread(java::lang::Thread* thread);
|
|
prepend java::lang::Thread* _Jv_AttachCurrentThread (jstring name, java::lang::ThreadGroup* group);
|
|
prepend java::lang::Thread* _Jv_AttachCurrentThreadAsDaemon (jstring name, java::lang::ThreadGroup* group);
|
|
prepend jint _Jv_DetachCurrentThread ();
|
|
prepend struct _Jv_Thread_t;
|
|
prepend _Jv_Thread_t* _Jv_ThreadGetData (java::lang::Thread* thread);
|
|
friend _Jv_JNIEnv * ::_Jv_GetCurrentJNIEnv ();
|
|
friend void ::_Jv_SetCurrentJNIEnv (_Jv_JNIEnv *env);
|
|
friend void ::_Jv_ThreadRun (java::lang::Thread* thread);
|
|
friend jint (::_Jv_AttachCurrentThread) (java::lang::Thread* thread);
|
|
friend java::lang::Thread* ::_Jv_AttachCurrentThread (jstring name, java::lang::ThreadGroup* group);
|
|
friend java::lang::Thread* ::_Jv_AttachCurrentThreadAsDaemon (jstring name, java::lang::ThreadGroup* group);
|
|
friend jint (::_Jv_DetachCurrentThread) ();
|
|
|
|
class java/lang/String
|
|
prepend jchar* _Jv_GetStringChars (jstring str);
|
|
prepend jstring* _Jv_StringFindSlot (jchar*, jint, jint);
|
|
prepend jstring* _Jv_StringGetSlot (jstring);
|
|
prepend jstring _Jv_NewStringUtf8Const (_Jv_Utf8Const* str);
|
|
prepend jstring _Jv_NewStringLatin1 (const char*, jsize);
|
|
prepend jstring _Jv_AllocString (jsize);
|
|
friend jchar* ::_Jv_GetStringChars (jstring str);
|
|
friend jstring* ::_Jv_StringFindSlot (jchar*, jint, jint);
|
|
friend jstring* ::_Jv_StringGetSlot (jstring);
|
|
friend jstring (::_Jv_NewStringUtf8Const) (_Jv_Utf8Const* str);
|
|
friend jstring (::_Jv_NewStringLatin1) (const char*, jsize);
|
|
friend jstring (::_Jv_AllocString) (jsize);
|
|
|
|
class java/lang/reflect/Constructor
|
|
prepend jmethodID _Jv_FromReflectedConstructor (java::lang::reflect::Constructor *);
|
|
prepend jobject _Jv_JNI_ToReflectedMethod (_Jv_JNIEnv *, jclass, jmethodID, jboolean);
|
|
friend jmethodID (::_Jv_FromReflectedConstructor) (java::lang::reflect::Constructor *);
|
|
friend jobject (::_Jv_JNI_ToReflectedMethod) (_Jv_JNIEnv *, jclass, jmethodID, jboolean);
|
|
friend class java::lang::Class;
|
|
|
|
class java/lang/reflect/Field
|
|
prepend jfieldID _Jv_FromReflectedField (java::lang::reflect::Field *);
|
|
prepend jobject _Jv_JNI_ToReflectedField (_Jv_JNIEnv*, jclass, jfieldID, jboolean);
|
|
friend jfieldID (::_Jv_FromReflectedField) (java::lang::reflect::Field *);
|
|
friend jobject (::_Jv_JNI_ToReflectedField) (_Jv_JNIEnv*, jclass, jfieldID, jboolean);
|
|
friend class java::lang::Class;
|
|
|
|
class java/lang/reflect/Method
|
|
prepend jmethodID _Jv_FromReflectedMethod (java::lang::reflect::Method *);
|
|
prepend jobject _Jv_JNI_ToReflectedMethod (_Jv_JNIEnv *, jclass, jmethodID, jboolean);
|
|
prepend ::java::lang::reflect::Method *_Jv_GetReflectedMethod (jclass, _Jv_Utf8Const*, _Jv_Utf8Const*);
|
|
friend jmethodID (::_Jv_FromReflectedMethod) (java::lang::reflect::Method *);
|
|
friend jobject (::_Jv_JNI_ToReflectedMethod) (_Jv_JNIEnv *, jclass, jmethodID, jboolean);
|
|
friend class java::lang::Class;
|
|
friend class java::io::ObjectInputStream;
|
|
friend java::lang::reflect::Method* ::_Jv_GetReflectedMethod (jclass, _Jv_Utf8Const*, _Jv_Utf8Const*);
|
|
|
|
class gnu/gcj/runtime/ExtensionClassLoader
|
|
friend class ::java::lang::ClassLoader;
|