[gcjx] Patch: FYI: make model_class method public

Tom Tromey tromey@redhat.com
Sun Mar 27 03:08:00 GMT 2005


I'm checking this in on the gcjx branch.

We need model_class::resolve_members() to be public so that the tree
back end can force member resolution when laying out classes.  This is
a bit of a hack; resolution is still a bit messy even after the last
going-over.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* model/class.hh (model_class::resolve_members): Now public.

Index: model/class.hh
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/model/Attic/class.hh,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 class.hh
--- model/class.hh 8 Mar 2005 17:27:37 -0000 1.1.2.2
+++ model/class.hh 27 Mar 2005 03:01:49 -0000
@@ -226,7 +226,6 @@
   void inherit_fields (model_class *, bool = false);
   void inherit_types (model_class *, bool = false);
   void inherit_package_private_members ();
-  void resolve_members ();
   void resolve_members (resolution_scope *);
   void compute_object_interface_methods ();
   void check_members ();
@@ -512,6 +511,11 @@
   // Like the above, but valid only for local and anonymous classes.
   virtual void resolve_classes (resolution_scope *);
 
+  // Resolve classes and members.  This means the types of the members
+  // are found, and inheritance is processed.  Resolution of method
+  // bodies is not done.
+  void resolve_members ();
+
   virtual void resolve (resolution_scope *);
 
   void find_members (const std::string &memname,



More information about the Java-patches mailing list