diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-24 17:24:44 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-24 17:24:44 +0000 |
commit | 5eebc41fc2d61e66d84f648fd6d59365facf185b (patch) | |
tree | b60d1cfd5772caf8f4b4422879feb1f039755a71 /libjava/java/lang/Class.h | |
parent | 14795d175a44e80fa9bed1c5ef99944645198bdd (diff) | |
download | ppe42-gcc-5eebc41fc2d61e66d84f648fd6d59365facf185b.tar.gz ppe42-gcc-5eebc41fc2d61e66d84f648fd6d59365facf185b.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45153 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/lang/Class.h')
-rw-r--r-- | libjava/java/lang/Class.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libjava/java/lang/Class.h b/libjava/java/lang/Class.h index ac992448df6..dfef0a6afbe 100644 --- a/libjava/java/lang/Class.h +++ b/libjava/java/lang/Class.h @@ -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; } }; |