GCJ can't find methods in nested interfaces

Jeff Sturm jsturm@sigma6.com
Tue Oct 26 14:51:00 GMT 1999


That works for me.  Thanks!

Jeff

Anthony Green wrote:
> 
> 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

-- 
Jeff Sturm
jsturm@sigma6.com


More information about the Java mailing list