diff options
author | Tom Tromey <tromey@redhat.com> | 2001-08-24 17:24:44 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-08-24 17:24:44 +0000 |
commit | 224b7b7b0c8a69e60e87a871a9ed828c99f389d8 (patch) | |
tree | b60d1cfd5772caf8f4b4422879feb1f039755a71 /libjava/java/lang/reflect/Field.java | |
parent | 66b461ce02570f05b7ddd76e2de1a82f3a6618e3 (diff) | |
download | gcc-224b7b7b0c8a69e60e87a871a9ed828c99f389d8.zip gcc-224b7b7b0c8a69e60e87a871a9ed828c99f389d8.tar.gz gcc-224b7b7b0c8a69e60e87a871a9ed828c99f389d8.tar.bz2 |
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
Diffstat (limited to 'libjava/java/lang/reflect/Field.java')
-rw-r--r-- | libjava/java/lang/reflect/Field.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/java/lang/reflect/Field.java b/libjava/java/lang/reflect/Field.java index 76243f3..aad5148 100644 --- a/libjava/java/lang/reflect/Field.java +++ b/libjava/java/lang/reflect/Field.java @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 1999, 2000 Free Software Foundation +/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation This file is part of libgcj. @@ -257,9 +257,9 @@ public final class Field extends AccessibleObject implements Member Modifier.toString(mods, sbuf); sbuf.append(' '); } - sbuf.append(getType().getName()); + Method.appendClassName (sbuf, getType ()); sbuf.append(' '); - sbuf.append(getDeclaringClass().getName()); + Method.appendClassName (sbuf, getDeclaringClass()); sbuf.append('.'); sbuf.append(getName()); return sbuf.toString(); |