Class.h (_getMethods): Declare.
* java/lang/Class.h (_getMethods): Declare. * java/lang/Class.java (_getMethods): Declare. * java/lang/natClass.cc (getDeclaringClass): Always return NULL. (getDeclaredClasses): Always return empty array. (_getMethods): New method. (getMethods): Wrote. (getDeclaredMethod): Return `rmethod'. (finit_name): New global. (getDeclaredMethods): Check for finit_name. (_getMethods): Likewise. (getMethod): Only return public methods. From-SVN: r31245
This commit is contained in:
parent
cb3ca04ee1
commit
6f2b93eb2f
4 changed files with 143 additions and 8 deletions
|
@ -94,6 +94,7 @@ public final class Class implements Serializable
|
|||
|
||||
public native Method getMethod (String methodName, Class[] parameterTypes)
|
||||
throws NoSuchMethodException, SecurityException;
|
||||
private native int _getMethods (Method[] result, int offset);
|
||||
public native Method[] getMethods () throws SecurityException;
|
||||
|
||||
public native int getModifiers ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue