VMSpec 1.2 5.4.3.3
Alexandre Oliva
aoliva@redhat.com
Mon Mar 25 08:57:00 GMT 2002
On Mar 22, 2002, Martin Vechev <martin@fadata.bg> wrote:
> About method resoluton, as a 3rd step, it says the following:
> "......Otherwise, method lookup attempts to locate the referenced
> method in any of the superinterfaces of the specified class C.
> - If any superinterface of C declares a method with the name and
> descriptor specified by the method reference, method lookup succeeds.
> - Otherwise, method lookup fails. "
> I cannot think of a situation where one would need this for the
> invokevirtual instruction.
abstract class foo implements bar but defers implementation of
bar.buz() to classes that extend foo?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Java
mailing list