зеркало из https://github.com/mozilla/gecko-dev.git
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 |
||
---|---|---|
.. | ||
benchmarks | ||
js2/java | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
semantics | ||
src | ||
tests | ||
.cvsignore | ||
Makefile.in | ||
landbranch.pl | ||
makefile.win |