+2004-01-27 Michael Koch <konqueror@gmx.de>
+
+ * java/lang/Class.java
+ (getConstructor): Removed SecurityException from throws clause.
+ (_getConstructors): Likewise.
+ (getConstructors): Likewise.
+ (getDeclaredConstructor): Likewise.
+ (getDeclaredClasses): Likewise.
+ (getDeclaredConstructors): Likewise.
+ (getDeclaredField): Likewise.
+ (getDeclaredMethod): Likewise.
+ (getDeclaredMethods): Likewise.
+ (getField): Likewise.
+ (getMethod): Likewise.
+ (getMethods): Likewise.
+
2004-01-27 Kim Ho <kho@redhat.com>
* gnu/java/awt/peer/gtk/GtkFramePeer.java
* @since 1.1
*/
public native Constructor getConstructor(Class[] args)
- throws NoSuchMethodException, SecurityException;
+ throws NoSuchMethodException;
// This is used to implement getConstructors and
// getDeclaredConstructors.
- private native Constructor[] _getConstructors (boolean declared)
- throws SecurityException;
+ private native Constructor[] _getConstructors (boolean declared);
/**
* Get all the public constructors of this class. This returns an array of
* @since 1.1
*/
public Constructor[] getConstructors()
- throws SecurityException
{
return _getConstructors(false);
}
* @since 1.1
*/
public native Constructor getDeclaredConstructor(Class[] args)
- throws NoSuchMethodException, SecurityException;
+ throws NoSuchMethodException;
/**
* Get all the declared member classes and interfaces in this class, but
* @throws SecurityException if the security check fails
* @since 1.1
*/
- public native Class[] getDeclaredClasses() throws SecurityException;
+ public native Class[] getDeclaredClasses();
/**
* Get all the declared constructors of this class. This returns an array of
* @since 1.1
*/
public Constructor[] getDeclaredConstructors()
- throws SecurityException
{
return _getConstructors(true);
}
* @since 1.1
*/
public native Field getDeclaredField(String fieldName)
- throws NoSuchFieldException, SecurityException;
+ throws NoSuchFieldException;
/**
* Get all the declared fields in this class, but not those inherited from
* @since 1.1
*/
public Method getDeclaredMethod(String methodName, Class[] args)
- throws NoSuchMethodException, SecurityException
+ throws NoSuchMethodException
{
memberAccessCheck(Member.DECLARED);
* @throws SecurityException if the security check fails
* @since 1.1
*/
- public native Method[] getDeclaredMethods () throws SecurityException;
+ public native Method[] getDeclaredMethods();
/**
* If this is a nested or inner class, return the class that declared it.
public native Class getDeclaringClass ();
private native Field getField (String fieldName, int hash)
- throws NoSuchFieldException, SecurityException;
+ throws NoSuchFieldException;
/**
* Get a public field declared or inherited in this class, where name is
* @since 1.1
*/
public Field getField(String fieldName)
- throws NoSuchFieldException, SecurityException
+ throws NoSuchFieldException
{
memberAccessCheck(Member.PUBLIC);
Field field = getField(fieldName, fieldName.hashCode());
* @since 1.1
*/
public Method getMethod(String methodName, Class[] args)
- throws NoSuchMethodException, SecurityException
+ throws NoSuchMethodException
{
memberAccessCheck(Member.PUBLIC);
* @throws SecurityException if the security check fails
* @since 1.1
*/
- public native Method[] getMethods () throws SecurityException;
+ public native Method[] getMethods();
/**
* Get the modifiers of this class. These can be decoded using Modifier,