Field.java (toString): Use Method.appendClassName.

* java/lang/reflect/Field.java (toString): Use
	Method.appendClassName.
	* java/lang/reflect/Constructor.java (toString): Use
	Method.appendClassName.
	* java/lang/reflect/Method.java: Reindented.
	(appendClassName): New method.
	(toString): Use it.
	* defineclass.cc (handleMethod ): Initialize `throws' field of
	method.
	(read_one_method_attribute): Handle Exceptions attribute.
	* java/lang/reflect/natMethod.cc (ClassClass): Removed.
	(ObjectClass): Removed.
	(getType): Compute `exception_types'.
	* java/lang/Class.h (struct _Jv_Method): Added `throws' field.

From-SVN: r45153
This commit is contained in:
Tom Tromey 2001-08-24 17:24:44 +00:00 committed by Tom Tromey
parent 66b461ce02
commit 224b7b7b0c
8 changed files with 166 additions and 78 deletions

View file

@ -64,10 +64,18 @@ struct _Jv_Constants
struct _Jv_Method
{
// Method name.
_Jv_Utf8Const *name;
// Method signature.
_Jv_Utf8Const *signature;
// Access flags.
_Jv_ushort accflags;
// Pointer to underlying function.
void *ncode;
// NULL-terminated list of exception class names; can be NULL if
// there are none such.
_Jv_Utf8Const **throws;
_Jv_Method *getNextMethod ()
{ return this + 1; }
};