[gcjx] Patch: FYI: fix method 'throws' reflection info

Tom Tromey tromey@redhat.com
Thu Oct 13 01:06:00 GMT 2005


I'm checking this in on the gcjx branch.

We were emitting the wrong kind of signature for a method's 'throws'
reflection info.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* classobj.cc (create_method_throws): Emit fully qualified name,
	not descriptor.

Index: classobj.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/Attic/classobj.cc,v
retrieving revision 1.1.2.27
diff -u -r1.1.2.27 classobj.cc
--- classobj.cc 12 Oct 2005 13:27:29 -0000 1.1.2.27
+++ classobj.cc 13 Oct 2005 01:06:06 -0000
@@ -175,7 +175,8 @@
        i != throw_list.end ();
        ++i)
     {
-      tree utf = builtins->map_utf8const (tree_builtins::get_descriptor ((*i)->type ()));
+      model_class *tk = assert_cast<model_class *> ((*i)->type ());
+      tree utf = builtins->map_utf8const (tk->get_fully_qualified_name ());
       cons_list = tree_cons (NULL_TREE, utf, cons_list);
     }
 



More information about the Java-patches mailing list