This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: fix method 'throws' reflection info
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 12 Oct 2005 19:00:15 -0600
- Subject: [gcjx] Patch: FYI: fix method 'throws' reflection info
- Reply-to: tromey at redhat dot com
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);
}