Deprecated API
Contents
-
InterfaceDescriptionEmbeddings that wish to customize newly created
Context
instances should implementContextFactory.Listener
.
-
FieldDescriptionIn previous releases, this name was given to FEATURE_PARENT_PROTO_PROPERTIES.
-
MethodDescriptionThe method always returns false.The method does nothing. Invoker optimization is no longer used by Rhino. On modern JDK like 1.4 or 1.5 the disadvantages of the optimization like increased memory usage or longer initialization time overweight small speed increase that can be gained using generated proxy class to replace reflection.use
ContextFactory.call(ContextAction)
instead as this method relies on usage of a static singleton "global" ContextFactory.useContextFactory.enterContext(Context)
instead as this method relies on usage of a static singleton "global" ContextFactory.useContextFactory.enterContext()
insteadUseContext.exit()
instead.Rhino runtime never calls the method.Rhino runtime never calls the method.UseRhinoException.columnNumber()
from the super class.Always returns null.UseRhinoException.lineNumber()
from the super class.UseRhinoException.lineSource()
from the super class.UseRhinoException.sourceName()
from the super class.UseRhinoException.columnNumber()
from the super class.UseRhinoException.lineNumber()
from the super class.UseRhinoException.lineSource()
from the super class.UseRhinoException.sourceName()
from the super class.UseFunctionObject.getTypeTag(Class)
andFunctionObject.convertArg(Context, Scriptable, Object, int)
for type conversion.use deleteEntry(Object key) instead because this returns null if the entry was not found or the value of the entry is nulluse getEntry(Object key) instead because this returns null if the entry was not found or the value of the entry is nullKept only for compatibility.UseRhinoException.lineNumber()
from the super class.UseRhinoException.sourceName()
from the super class.UseNativeArray.getLength()
instead.UseBaseFunction.getFunctionName()
instead. For backwards compatibility keep an old method name used by Batik and possibly others.UseScriptRuntime.constructError(String,String)
instead.as of 1.5 Release 4UseContext.getWrapFactory()
together with callingWrapFactory.wrap(Context, Scriptable, Object, Class)
use parse(String, String, int) insteadUseRef.set(Context, Scriptable, Object)
insteadthe filter argument is ignored as we are able to recognize script stack elements by our own. Use #getScriptStackTrace() instead.UseScriptableObject.getAttributes(int index)
. The engine always ignored the start argument.UseScriptableObject.getAttributes(String name)
. The engine always ignored the start argument.since 1.7.14. Use the form with the scope to ensure consistent function prototype handling in all cases.UseScriptableObject.setAttributes(int index, int attributes)
. The engine always ignored the start argument.UseScriptableObject.setAttributes(String name, int attributes)
. The engine always ignored the start argument.UseScriptRuntime.add(Object, Object, Context)
insteadUseScriptRuntime.add(Object, Object, Context)
insteadThe method is only present for compatibility.since 1.7.15. UseScriptRuntime.enumNext(Object, Context)
insteadUseScriptRuntime.toObject(Context, Scriptable, Object)
instead.UseScriptRuntime.toObject(Scriptable, Object)
instead.The application should not override this method and instead overrideSecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args)
.UseWrappedException.getWrappedException()
instead.
-
ConstructorDescriptionas of version 4.4.0; use
CSSException(String, Exception)
insteadas of version 4.4.0; useCSSException(String, Exception)
insteadas of version 4.4.0; useCSSException(String, Exception)
insteadas of version 4.4.0; useCSSException(String, Exception)
insteadas of version 4.4.0; useCSSException(String, Exception)
insteadthis constructor is deprecated because it creates a dependency on a static singleton context factory. UseContextFactory.enter()
orContextFactory.call(ContextAction)
instead. If you subclass this class, consider usingContext(ContextFactory)
constructor instead in the subclasses' constructors.EcmaError error instances should not be constructed explicitly since they are generated by the engine.UseWrappedException(Throwable)
to report exceptions in Java code.NativeJavaPackage is an internal class, do not use it directly.NativeJavaPackage is an internal class, do not use it directly.