gecko-dev/js/rhino/org/mozilla/javascript
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
..
regexp A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
resources Fixes for LC3 regression tests, including: 1999-06-11 01:24:40 +00:00
tools A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
Arguments.java Clean up formatting. 1999-04-23 17:30:31 +00:00
BinaryDigitReader.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
ClassDefinitionException.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
ClassNameHelper.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
Context.java Accept patch (with modifications) from Andrew Wason <aw@softcom.com>: 1999-08-04 16:56:18 +00:00
DeepBytecodeHook.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
DeepCallHook.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
DeepErrorReporterHook.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
DeepExecuteHook.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
DeepNewObjectHook.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
DeepScriptHook.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
DefaultErrorReporter.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
ErrorReporter.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
EvaluatorException.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
FlattenedObject.java Fix bug 6313 'Rhino: "new Function" doesn't work properly with superglobal' 1999-05-18 23:10:20 +00:00
Function.java Fix bug 6313 'Rhino: "new Function" doesn't work properly with superglobal' 1999-05-18 23:10:20 +00:00
FunctionNode.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
FunctionObject.java Report errors for incorrect usages of varargs forms. 1999-07-08 16:32:51 +00:00
ImporterTopLevel.java Add support for selectively filtering Java classes' visibility to JS 1999-06-18 21:35:35 +00:00
InterpretedFunction.java clean up formatting 1999-05-26 19:48:02 +00:00
InterpretedScript.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
Interpreter.java Fixed bug #7703, typeof<var> wasn't referencing activation frame vars 1999-06-07 22:29:41 +00:00
InterpreterData.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
IRFactory.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
JavaAdapter.java * Take advantage of the new semantics of Context.enter & exit to save codesize. 1999-08-04 17:43:18 +00:00
JavaMembers.java Fixes for LC3 regression tests, including: 1999-06-11 01:24:40 +00:00
JavaScriptException.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
Label.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
LabelTable.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
LineBuffer.java Fix NullPointerException for "abc".match("a\"); 1999-06-02 16:12:19 +00:00
ListenerCollection.java Comment fixes. 1999-07-26 10:40:53 +00:00
LocalVariable.java Make JavaAdapter work on mozilla-only. 1999-04-26 20:41:57 +00:00
Makefile Added missing ImporterTopLevel.java and ListenerCollection.java files to the source list. 1999-08-04 02:50:47 +00:00
NativeArray.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
NativeBoolean.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
NativeCall.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
NativeClosure.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
NativeDate.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
NativeFunction.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
NativeGlobal.java Fix formatting. 1999-05-18 22:55:11 +00:00
NativeJavaArray.java Fixes for LC3 regression tests, including: 1999-06-11 01:24:40 +00:00
NativeJavaClass.java Fixes for LC3 regression tests, including: 1999-06-11 01:24:40 +00:00
NativeJavaConstructor.java Subject: 1999-06-03 23:38:00 +00:00
NativeJavaMethod.java Fixes for LC3 regression tests, including: 1999-06-11 01:24:40 +00:00
NativeJavaObject.java Revamp NativeJavaObject.coerceType and associated methods to make code 1999-06-12 01:41:20 +00:00
NativeJavaPackage.java Add support for selectively filtering Java classes' visibility to JS 1999-06-18 21:35:35 +00:00
NativeMath.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
NativeNumber.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
NativeObject.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
NativeScript.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
NativeString.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
NativeWith.java A bunch of changes, some experimental. 1999-06-18 17:37:20 +00:00
Node.java fix node property printing 1999-05-26 19:48:45 +00:00
NodeTransformer.java Reduce need for a current context. 1999-06-18 21:32:18 +00:00
NotAFunctionException.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
Parser.java Backing out demo cvs checkin. 1999-06-04 22:27:50 +00:00
PreorderNodeIterator.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
PropertyException.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
RegExpProxy.java Added interface method to construct a new RegExp. 1999-04-28 23:06:26 +00:00
Script.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
Scriptable.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
ScriptableObject.java Remove unused clone() method. 1999-08-03 20:40:25 +00:00
ScriptRuntime.java Updated internal name of exec function to match new naming rules. 1999-08-03 22:41:57 +00:00
SecuritySupport.java Add support for selectively filtering Java classes' visibility to JS 1999-06-18 21:35:35 +00:00
ShallowNodeIterator.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
SourceTextItem.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
SourceTextManager.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
TokenStream.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
Undefined.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
VariableTable.java Make JavaAdapter work on mozilla-only. 1999-04-26 20:41:57 +00:00
WrappedException.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00
Wrapper.java Publish Rhino as open source. 1999-04-19 20:43:53 +00:00