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: reading generic interfaces


I'm checking this in on the gcjx branch.

This fixes a bug where we would ignore interfaces appearing in a
class' signature.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* bytecode/classreader.cc (parse_signature): Don't set interfaces
	for class.

Index: bytecode/classreader.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/bytecode/Attic/classreader.cc,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 classreader.cc
--- bytecode/classreader.cc 19 Jan 2005 00:35:24 -0000 1.1.2.3
+++ bytecode/classreader.cc 19 Jan 2005 03:07:38 -0000
@@ -574,14 +574,14 @@
       // Signature for class.
       std::list<ref_type_variable> type_parameters;
       ref_forwarding_type super;
-      std::list<ref_forwarding_type> ifaces;
-      parser.parse_class_signature (type_parameters, super, ifaces);
+      // Interfaces are set later.
+      interfaces.clear ();
+      parser.parse_class_signature (type_parameters, super, interfaces);
       // Internally we represent interfaces as not having a
       // superclass.
       if (! result->interface_p ())
 	result->set_superclass (super);
       result->set_type_parameters (type_parameters);
-      result->set_implements (ifaces);
     }
 }
 


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