This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gcjx] Patch: FYI: fix class generation buglet


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 ()));
 }
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]