This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: fix class generation buglet
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 12 Sep 2005 11:45:14 -0600
- Subject: [gcjx] Patch: FYI: fix class generation buglet
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
My previous change to Exception attribute emission was broken; it was
somehow finding a conversion to int. Fixed as appended.
Tom
2005-09-12 Tom Tromey <tromey@redhat.com>
* bytecode/attribute.cc (exceptions_attribute): Unwrap the
forwarding type.
(emit): Likewise.
--- gcc/gcjx/bytecode/attribute.cc
+++ gcc/gcjx/bytecode/attribute.cc
@@ -112,7 +112,7 @@
for (std::list<ref_forwarding_type>::const_iterator i = excs.begin ();
i != excs.end ();
++i)
- pool->add (*i);
+ pool->add ((*i)->type ());
}
void
@@ -123,7 +123,7 @@
for (std::list<ref_forwarding_type>::const_iterator i = excs.begin ();
i != excs.end ();
++i)
- writer.put2 (pool->add (*i));
+ writer.put2 (pool->add ((*i)->type ()));
}