Eric Blake wrote: > Robert Lougher wrote: > > OK, I'm yelling :) Please don't use Mark's patch! > > > > It "fixes" it by stopping resolution finding the method on Object. > > However, it is legal to have an invokeinterface on an Object method > > (as all interfaces subclass Object). > > > > Instead, please use the attached patch to the interpreter. This > > converts an invokeinterface on an Object method into an > invokevirtual > > (which is what 1.4 javac does anyway, but not jikes or 1.3 javac). > > The JVMS is clear that invokeinterface is only to be used on > interface methods.
I think you two are talking about two different things. I think Robert means that it is legal to use invokeinterface on an Object method through an interface type. So this is legal: invokeinterface java/lang/Runnable/toString()Ljava/lang/String; Regards, Jeroen _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/classpath