mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
eb9dcf8b50
* Accept patch from Andrew Wason <aw@softcom.com>: Subject: Re: partial interface problem Date: Wed, 04 Aug 1999 13:04:37 -0400 From: Andrew Wason <aw@softcom.com> To: norris@netscape.com CC: Howard Lin <howard@softcom.com> >I'm having a problem implementing a Java interface in JS where I don't >implement all the methods, and one of the methods I don't define returns >non-void. I have a patch for this. I generate bytecode in JavaAdapter.generateReturnResult to check the return type on the stack from JavaAdapter.callMethod. If it is Undefined, return null. I'm not positive this is the right way to fix this - maybe it should be fixed closer to the source (e.g. prevent callMethod from returning Undefined to begin with) Andrew -- Andrew Wason SoftCom, Inc. aw@softcom.com |
||
---|---|---|
.. | ||
examples | ||
macbuild | ||
org/mozilla | ||
src/org/mozilla | ||
toolsrc/org/mozilla/javascript/tools | ||
Makefile | ||
manifest | ||
README.html |
<html> <body> <h1> <span CLASS=LXRSHORTDESC> Rhino: JavaScript in Java<p> </span> </h1> <span CLASS=LXRLONGDESC> Rhino is an implementation of JavaScript in Java. Documentation can be found <a href="http://www.mozilla.org/js/rhino/rhino.html">here</a>. </span> </body> </html>