PATCH: fix libgcj/7060

Tom Tromey tromey@redhat.com
Fri Jun 21 20:35:00 GMT 2002


>>>>> "Jeff" == Jeff Sturm <jsturm@one-point.com> writes:

Jeff> I decided it would be best to invoke getMethod recursively,
Jeff> since interfaces may inherit from a tree of other interfaces.
Jeff> To avoid catching NoSuchMethodExceptions I split getMethod into
Jeff> two, introducing a new private method.

Jeff> Is this acceptable?

There doesn't seem to be a simple, clean way to make it compute the
utf8const just once :-(.

In any case, I think _getMethod needs to search the superinterfaces
even if `this' is not an interface itself.  So I think you'd at least
need to remove the `if'.

This method diverges from the spec in a number of ways :-(

Tom



More information about the Java-patches mailing list