Deprecated API

Contents

Deprecated Methods

org.mozilla.javascript.Context.compileReader(Scriptable,Reader,String,int,Object)
The method implementation simply calls
org.mozilla.javascript.Context.toObject(Object,Scriptable,Class)
org.mozilla.javascript.Context.setCachingEnabled(boolean)
To enable/disable caching for a particular top scope, use ClassCache.get(Scriptable) and
org.mozilla.javascript.Context.setWrapHandler(org.mozilla.javascript.WrapHandler)
As of Rhino 1.5 Release 4, use
org.mozilla.javascript.Context.getWrapHandler()
As of Rhino 1.5 Release 4, use
org.mozilla.javascript.EcmaError.getErrorObject()
Always returns result of Context.getUndefinedValue().
org.mozilla.javascript.FunctionObject.convertArg(Context,Scriptable,Object,Class)
org.mozilla.javascript.ScriptableObject.getAttributes(String,Scriptable)
Use getAttributes(String name).
org.mozilla.javascript.ScriptableObject.getAttributes(int,Scriptable)
Use getAttributes(int index).
org.mozilla.javascript.ScriptableObject.setAttributes(String,Scriptable,int)
Use setAttributes(String name, int attributes).
org.mozilla.javascript.ScriptableObject.setAttributes(int,Scriptable,int)
Use setAttributes(int index, int attributes).
org.mozilla.javascript.SecurityController.execWithDomain(Context,Scriptable,Script,Object)
The application should not override this method and instead override
org.mozilla.javascript.WrappedException.unwrap()

Deprecated Constructors

org.mozilla.javascript.EcmaError.EcmaError(Scriptable,String,int,int,String)
EcmaError error instances should not be constructed explicitly since they are generated by the engine.
org.mozilla.javascript.JavaScriptException.JavaScriptException(Object)
Use EvaluatorException.EvaluatorException(String) to report exceptions in Java code.