Class.h (getSignature): Updated.

* java/lang/Class.h (getSignature): Updated.
	* java/lang/Class.java (getSignature): Updated.
	* java/lang/natClass.cc (getSignature): Added `is_constructor'
	argument.
	(getConstructor): Ensure constructor is public.
	(_getConstructors): Check for public-ness of constructor when
	`declared' is false, not when it is true.

From-SVN: r31241
This commit is contained in:
Tom Tromey 2000-01-05 16:35:20 +00:00 committed by Tom Tromey
parent c0029be5f7
commit 95c6cc0ab5
4 changed files with 24 additions and 10 deletions

View file

@ -89,7 +89,8 @@ public final class Class implements Serializable
public native Class[] getInterfaces ();
private final native void getSignature (StringBuffer buffer);
private static final native String getSignature (Class[] parameterTypes);
private static final native String getSignature (Class[] parameterTypes,
boolean is_construtor);
public native Method getMethod (String methodName, Class[] parameterTypes)
throws NoSuchMethodException, SecurityException;