Skip to content
Snippets Groups Projects
Commit f79b7708 authored by Michael Koch's avatar Michael Koch Committed by Michael Koch
Browse files

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.

From-SVN: r76747
parent 6097b0c3
No related branches found
No related tags found
No related merge requests found
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> 2004-01-27 Kim Ho <kho@redhat.com>
* gnu/java/awt/peer/gtk/GtkFramePeer.java * gnu/java/awt/peer/gtk/GtkFramePeer.java
......
...@@ -191,12 +191,11 @@ public final class Class implements Serializable ...@@ -191,12 +191,11 @@ public final class Class implements Serializable
* @since 1.1 * @since 1.1
*/ */
public native Constructor getConstructor(Class[] args) public native Constructor getConstructor(Class[] args)
throws NoSuchMethodException, SecurityException; throws NoSuchMethodException;
// This is used to implement getConstructors and // This is used to implement getConstructors and
// getDeclaredConstructors. // getDeclaredConstructors.
private native Constructor[] _getConstructors (boolean declared) private native Constructor[] _getConstructors (boolean declared);
throws SecurityException;
/** /**
* Get all the public constructors of this class. This returns an array of * Get all the public constructors of this class. This returns an array of
...@@ -211,7 +210,6 @@ public final class Class implements Serializable ...@@ -211,7 +210,6 @@ public final class Class implements Serializable
* @since 1.1 * @since 1.1
*/ */
public Constructor[] getConstructors() public Constructor[] getConstructors()
throws SecurityException
{ {
return _getConstructors(false); return _getConstructors(false);
} }
...@@ -231,7 +229,7 @@ public final class Class implements Serializable ...@@ -231,7 +229,7 @@ public final class Class implements Serializable
* @since 1.1 * @since 1.1
*/ */
public native Constructor getDeclaredConstructor(Class[] args) public native Constructor getDeclaredConstructor(Class[] args)
throws NoSuchMethodException, SecurityException; throws NoSuchMethodException;
/** /**
* Get all the declared member classes and interfaces in this class, but * Get all the declared member classes and interfaces in this class, but
...@@ -245,7 +243,7 @@ public final class Class implements Serializable ...@@ -245,7 +243,7 @@ public final class Class implements Serializable
* @throws SecurityException if the security check fails * @throws SecurityException if the security check fails
* @since 1.1 * @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 * Get all the declared constructors of this class. This returns an array of
...@@ -260,7 +258,6 @@ public final class Class implements Serializable ...@@ -260,7 +258,6 @@ public final class Class implements Serializable
* @since 1.1 * @since 1.1
*/ */
public Constructor[] getDeclaredConstructors() public Constructor[] getDeclaredConstructors()
throws SecurityException
{ {
return _getConstructors(true); return _getConstructors(true);
} }
...@@ -279,7 +276,7 @@ public final class Class implements Serializable ...@@ -279,7 +276,7 @@ public final class Class implements Serializable
* @since 1.1 * @since 1.1
*/ */
public native Field getDeclaredField(String fieldName) public native Field getDeclaredField(String fieldName)
throws NoSuchFieldException, SecurityException; throws NoSuchFieldException;
/** /**
* Get all the declared fields in this class, but not those inherited from * Get all the declared fields in this class, but not those inherited from
...@@ -325,7 +322,7 @@ public final class Class implements Serializable ...@@ -325,7 +322,7 @@ public final class Class implements Serializable
* @since 1.1 * @since 1.1
*/ */
public Method getDeclaredMethod(String methodName, Class[] args) public Method getDeclaredMethod(String methodName, Class[] args)
throws NoSuchMethodException, SecurityException throws NoSuchMethodException
{ {
memberAccessCheck(Member.DECLARED); memberAccessCheck(Member.DECLARED);
...@@ -354,7 +351,7 @@ public final class Class implements Serializable ...@@ -354,7 +351,7 @@ public final class Class implements Serializable
* @throws SecurityException if the security check fails * @throws SecurityException if the security check fails
* @since 1.1 * @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. * If this is a nested or inner class, return the class that declared it.
...@@ -367,7 +364,7 @@ public final class Class implements Serializable ...@@ -367,7 +364,7 @@ public final class Class implements Serializable
public native Class getDeclaringClass (); public native Class getDeclaringClass ();
private native Field getField (String fieldName, int hash) 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 * Get a public field declared or inherited in this class, where name is
...@@ -385,7 +382,7 @@ public final class Class implements Serializable ...@@ -385,7 +382,7 @@ public final class Class implements Serializable
* @since 1.1 * @since 1.1
*/ */
public Field getField(String fieldName) public Field getField(String fieldName)
throws NoSuchFieldException, SecurityException throws NoSuchFieldException
{ {
memberAccessCheck(Member.PUBLIC); memberAccessCheck(Member.PUBLIC);
Field field = getField(fieldName, fieldName.hashCode()); Field field = getField(fieldName, fieldName.hashCode());
...@@ -491,7 +488,7 @@ public final class Class implements Serializable ...@@ -491,7 +488,7 @@ public final class Class implements Serializable
* @since 1.1 * @since 1.1
*/ */
public Method getMethod(String methodName, Class[] args) public Method getMethod(String methodName, Class[] args)
throws NoSuchMethodException, SecurityException throws NoSuchMethodException
{ {
memberAccessCheck(Member.PUBLIC); memberAccessCheck(Member.PUBLIC);
...@@ -522,7 +519,7 @@ public final class Class implements Serializable ...@@ -522,7 +519,7 @@ public final class Class implements Serializable
* @throws SecurityException if the security check fails * @throws SecurityException if the security check fails
* @since 1.1 * @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, * Get the modifiers of this class. These can be decoded using Modifier,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment