GCJ can't find methods in nested interfaces

Anthony Green green@cygnus.com
Tue Oct 26 14:33:00 GMT 1999


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /