natVMProxy.cc (ncode_closure.meth): Delete.
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
This commit is contained in:
parent
f4a2a1deec
commit
a29114a3be
8 changed files with 83 additions and 13 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
jmethodID _Jv_FromReflectedMethod (java::lang::reflect::Method *);
|
||||
jobject _Jv_JNI_ToReflectedMethod (_Jv_JNIEnv *, jclass, jmethodID, jboolean);
|
||||
::java::lang::reflect::Method *_Jv_GetReflectedMethod (jclass, _Jv_Utf8Const*, _Jv_Utf8Const*);
|
||||
|
||||
class java::lang::reflect::Method : public ::java::lang::reflect::AccessibleObject
|
||||
{
|
||||
|
@ -29,7 +30,13 @@ public:
|
|||
jboolean isVarArgs();
|
||||
::java::lang::Class * getReturnType();
|
||||
JArray< ::java::lang::Class * > * getParameterTypes();
|
||||
public: // actually package-private
|
||||
JArray< ::java::lang::Class * > * internalGetParameterTypes();
|
||||
public:
|
||||
JArray< ::java::lang::Class * > * getExceptionTypes();
|
||||
public: // actually package-private
|
||||
JArray< ::java::lang::Class * > * internalGetExceptionTypes();
|
||||
public:
|
||||
jboolean equals(::java::lang::Object *);
|
||||
jint hashCode();
|
||||
::java::lang::String * toString();
|
||||
|
@ -71,6 +78,7 @@ public:
|
|||
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*);
|
||||
};
|
||||
|
||||
#endif // __java_lang_reflect_Method__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue