re PR java/8415 (reflection bug: exception info for Method)
authorTom Tromey <tromey@redhat.com>
Sat, 2 Nov 2002 21:33:54 +0000 (21:33 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sat, 2 Nov 2002 21:33:54 +0000 (21:33 +0000)
* class.c (make_method_value): Put class name, not signature, into
`throws' field.  For PR java/8415.

From-SVN: r58758

gcc/java/ChangeLog
gcc/java/class.c

index 678c93287ae0e79b12b8446527954eca4ea4e276..bf22c6c7409fea604f40ed9722d412842556e0c0 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-02  Tom Tromey  <tromey@redhat.com>
+
+       * class.c (make_method_value): Put class name, not signature, into
+       `throws' field.  For PR java/8415.
+
 2002-10-24  Tom Tromey  <tromey@redhat.com>
 
        * gcj.texi (Invoking gij): Document --showversion.
index c412283158c29631a2f5ac1b026909f8a2390e02..db4470cff9839fcc93c42a6e9a736e9a630fa854 100644 (file)
@@ -1285,7 +1285,7 @@ make_method_value (mdecl)
             iter != NULL_TREE;
             iter = TREE_CHAIN (iter))
          {
-           tree sig = build_java_signature (TREE_VALUE (iter));
+           tree sig = DECL_NAME (TYPE_NAME (TREE_VALUE (iter)));
            tree utf8
              = build_utf8_ref (unmangle_classname (IDENTIFIER_POINTER (sig),
                                                    IDENTIFIER_LENGTH (sig)));