gecko-dev/js/rhino
norris%netscape.com eb9dcf8b50 * Take advantage of the new semantics of Context.enter & exit to save codesize.
* 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
1999-08-04 17:43:18 +00:00
..
examples Add new example. 1999-07-16 03:03:20 +00:00
macbuild added ImporterTopLevel.java 1999-06-19 23:38:35 +00:00
org/mozilla * Take advantage of the new semantics of Context.enter & exit to save codesize. 1999-08-04 17:43:18 +00:00
src/org/mozilla * Take advantage of the new semantics of Context.enter & exit to save codesize. 1999-08-04 17:43:18 +00:00
toolsrc/org/mozilla/javascript/tools A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
Makefile - Added OS_TARGET-switched definition of CLASSPATHSEP, to support building under Windows NT with GNU make. Thanks to Andew Wason <aw@softcom.com> for this fix. 1999-08-03 22:15:02 +00:00
manifest Remove class path for merging into a single JAR file. 1999-05-26 19:52:40 +00:00
README.html Fix spelling, don't claim uniqueness. 1999-05-03 17:56:07 +00:00

<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>