Patch: Interpreter and InvokeInterface

Bryce McKinlay bryce@albatross.co.nz
Tue Feb 15 20:04:00 GMT 2000


2000-02-16  Bryce McKinlay  <bryce@albatross.co.nz>

        * resolve.cc (_Jv_SearchMethodInClass): New function.
        (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
        * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.


This fixes a bug in the interpreter that can occur when running bytecode from
Jikes and "new" Javac. It fails to search for interface method definitions in
superinterfaces of the interface containing the invoked method. (This is the
same problem as gcj/72). I fixed this by reusing code (_Jv_GetInterfaces) from
the interface lookup patch, which returns a list of all unique superinterfaces
of a given interface.

  [ bryce ]




More information about the Java-patches mailing list