This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: GCJ can't find methods in nested interfaces



Jeff wrote:
> It seems the presence of the .class files confuses gcj.  If this hasn't
> yet been fixed I'll file a bug report.

Let me know if this works.  It's one a few patches I have yet to
commit.

1999-10-23  Anthony Green  <green@cygnus.com>

        * class.c (add_interface_do): Load interfaces when required.


Index: gcc/java/class.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/class.c,v
retrieving revision 1.45
diff -u -p -u -r1.45 class.c
--- class.c     1999/09/11 22:22:57     1.45
+++ class.c     1999/10/26 21:31:20
@@ -324,6 +324,10 @@ add_interface_do (basetype_vec, interfac
   TREE_VIA_VIRTUAL (interface_binfo) = 1;
   TREE_VIA_PUBLIC (interface_binfo) = 1;
   TREE_VEC_ELT (basetype_vec, i) = interface_binfo;
+
+  /* If the interface hasn't been loaded yet, do so now.  */
+  if (! CLASS_LOADED_P (interface_class))
+    load_class (interface_class, 1);
 }

 /* Add INTERFACE_CLASS to THIS_CLASS iff INTERFACE_CLASS can't be


AG

-- 
Anthony Green                                               Cygnus Solutions
                                                       Sunnyvale, California

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