Deprecated API


Contents
Deprecated Interfaces
net.sourceforge.htmlunit.corejs.javascript.ContextListener
          Embeddings that wish to customize newly created Context instances should implement ContextFactory.Listener. 
 

Deprecated Classes
net.sourceforge.htmlunit.corejs.javascript.tools.shell.ShellLine
           
 

Deprecated Fields
net.sourceforge.htmlunit.corejs.javascript.Context.FEATURE_PARENT_PROTO_PROPRTIES
          In previous releases, this name was given to FEATURE_PARENT_PROTO_PROPERTIES. 
 

Deprecated Methods
net.sourceforge.htmlunit.corejs.javascript.Context.addContextListener(ContextListener)
            
net.sourceforge.htmlunit.corejs.javascript.Context.call(ContextAction)
          use ContextFactory.call(ContextAction) instead as this method relies on usage of a static singleton "global" ContextFactory. 
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.call(Context, Object, Object, Object[], Scriptable)
          The method is only present for compatibility. 
net.sourceforge.htmlunit.corejs.javascript.NativeJavaObject.coerceType(Class, Object)
          as of 1.5 Release 4 
net.sourceforge.htmlunit.corejs.javascript.Context.compileReader(Scriptable, Reader, String, int, Object)
            
net.sourceforge.htmlunit.corejs.javascript.NativeGlobal.constructError(Context, String, String, Scriptable)
          Use ScriptRuntime.constructError(String,String) instead. 
net.sourceforge.htmlunit.corejs.javascript.NativeGlobal.constructError(Context, String, String, Scriptable, String, int, int, String)
          Use ScriptRuntime.constructError(String,String,String,int,String,int) instead. 
net.sourceforge.htmlunit.corejs.javascript.tools.debugger.Main.contextCreated(Context)
          The method is only present for compatibility and should not be called. 
net.sourceforge.htmlunit.corejs.javascript.ContextListener.contextEntered(Context)
          Rhino runtime never calls the method. 
net.sourceforge.htmlunit.corejs.javascript.tools.debugger.Main.contextEntered(Context)
          The method is only present for compatibility and should not be called. 
net.sourceforge.htmlunit.corejs.javascript.ContextListener.contextExited(Context)
          Rhino runtime never calls the method. 
net.sourceforge.htmlunit.corejs.javascript.tools.debugger.Main.contextExited(Context)
          The method is only present for compatibility and should not be called. 
net.sourceforge.htmlunit.corejs.javascript.tools.debugger.Main.contextReleased(Context)
          The method is only present for compatibility and should not be called. 
net.sourceforge.htmlunit.corejs.javascript.FunctionObject.convertArg(Context, Scriptable, Object, Class)
          Use FunctionObject.getTypeTag(Class) and FunctionObject.convertArg(Context, Scriptable, Object, int) for type conversion. 
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.delete(Object, Object, Context)
            
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.enter()
          use ContextFactory.enterContext() instead 
net.sourceforge.htmlunit.corejs.javascript.Context.enter(Context)
          use ContextFactory.enterContext(Context) instead as this method relies on usage of a static singleton "global" ContextFactory. 
net.sourceforge.htmlunit.corejs.javascript.SecurityController.execWithDomain(Context, Scriptable, Script, Object)
          The application should not override this method and instead override SecurityController.callWithDomain(Object securityDomain, Context cx, Callable callable, Scriptable scope, Scriptable thisObj, Object[] args). 
net.sourceforge.htmlunit.corejs.javascript.ContextFactory.exit()
          Use Context.exit() instead. 
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.getAttributes(int, Scriptable)
          Use ScriptableObject.getAttributes(int index). The engine always ignored the start argument. 
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.getAttributes(String, Scriptable)
          Use ScriptableObject.getAttributes(String name). The engine always ignored the start argument. 
net.sourceforge.htmlunit.corejs.javascript.EvaluatorException.getColumnNumber()
          Use RhinoException.columnNumber() from the super class. 
net.sourceforge.htmlunit.corejs.javascript.EcmaError.getColumnNumber()
          Use RhinoException.columnNumber() from the super class. 
net.sourceforge.htmlunit.corejs.javascript.EcmaError.getErrorObject()
          Always returns null. 
net.sourceforge.htmlunit.corejs.javascript.JavaScriptException.getLineNumber()
          Use RhinoException.lineNumber() from the super class. 
net.sourceforge.htmlunit.corejs.javascript.EvaluatorException.getLineNumber()
          Use RhinoException.lineNumber() from the super class. 
net.sourceforge.htmlunit.corejs.javascript.EcmaError.getLineNumber()
          Use RhinoException.lineNumber() from the super class. 
net.sourceforge.htmlunit.corejs.javascript.EvaluatorException.getLineSource()
          Use RhinoException.lineSource() from the super class. 
net.sourceforge.htmlunit.corejs.javascript.EcmaError.getLineSource()
          Use RhinoException.lineSource() from the super class. 
net.sourceforge.htmlunit.corejs.javascript.RhinoException.getScriptStackTrace(FilenameFilter)
          the filter argument is ignored as we are able to recognize script stack elements by our own. Use #getScriptStackTrace() instead. 
net.sourceforge.htmlunit.corejs.javascript.JavaScriptException.getSourceName()
          Use RhinoException.sourceName() from the super class. 
net.sourceforge.htmlunit.corejs.javascript.EvaluatorException.getSourceName()
          Use RhinoException.sourceName() from the super class. 
net.sourceforge.htmlunit.corejs.javascript.EcmaError.getSourceName()
          Use RhinoException.sourceName() from the super class. 
net.sourceforge.htmlunit.corejs.javascript.tools.shell.ShellLine.getStream(Scriptable)
           
net.sourceforge.htmlunit.corejs.javascript.ImporterTopLevel.importPackage(Context, Scriptable, Object[], Function)
          Kept only for compatibility. 
net.sourceforge.htmlunit.corejs.javascript.ClassCache.isInvokerOptimizationEnabled()
          The method always returns false. 
net.sourceforge.htmlunit.corejs.javascript.NativeArray.jsGet_length()
          Use NativeArray.getLength() instead. 
net.sourceforge.htmlunit.corejs.javascript.NativeFunction.jsGet_name()
          Use BaseFunction.getFunctionName() instead. For backwards compatibility keep an old method name used by Batik and possibly others. 
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.nameIncrDecr(Scriptable, String, int)
          The method is only present for compatibility. 
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.newObjectLiteral(Object[], Object[], Context, Scriptable)
          This method only present for compatibility. 
net.sourceforge.htmlunit.corejs.javascript.Context.removeContextListener(ContextListener)
            
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.setAttributes(int, Scriptable, int)
          Use ScriptableObject.setAttributes(int index, int attributes). The engine always ignored the start argument. 
net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.setAttributes(String, Scriptable, int)
          Use ScriptableObject.setAttributes(String name, int attributes). The engine always ignored the start argument. 
net.sourceforge.htmlunit.corejs.javascript.Context.setCachingEnabled(boolean)
            
net.sourceforge.htmlunit.corejs.javascript.ClassCache.setInvokerOptimizationEnabled(boolean)
          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. 
net.sourceforge.htmlunit.corejs.javascript.tools.debugger.Main.setOptimizationLevel(int)
          The method does nothing and is only present for compatibility. 
net.sourceforge.htmlunit.corejs.javascript.tools.debugger.Main.setSize(Dimension)
          Use Main.setSize(int, int) instead. 
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.toObject(Context, Scriptable, Object, Class)
          Use ScriptRuntime.toObject(Context, Scriptable, Object) instead. 
net.sourceforge.htmlunit.corejs.javascript.Context.toObject(Object, Scriptable, Class)
            
net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.toObject(Scriptable, Object, Class)
          Use ScriptRuntime.toObject(Scriptable, Object) instead. 
net.sourceforge.htmlunit.corejs.javascript.Context.toType(Object, Class)
            
net.sourceforge.htmlunit.corejs.javascript.WrappedException.unwrap()
          Use WrappedException.getWrappedException() instead. 
net.sourceforge.htmlunit.corejs.javascript.NativeJavaObject.wrap(Scriptable, Object, Class)
          Use Context.getWrapFactory() together with calling WrapFactory.wrap(Context, Scriptable, Object, Class) 
 

Deprecated Constructors
net.sourceforge.htmlunit.corejs.javascript.Context()
          this constructor is deprecated because it creates a dependency on a static singleton context factory. Use ContextFactory.enter() or ContextFactory.call(ContextAction) instead. If you subclass this class, consider using Context.Context(ContextFactory) constructor instead in the subclasses' constructors. 
net.sourceforge.htmlunit.corejs.javascript.EcmaError(Scriptable, String, int, int, String)
          EcmaError error instances should not be constructed explicitly since they are generated by the engine. 
net.sourceforge.htmlunit.corejs.javascript.JavaScriptException(Object)
          Use WrappedException.WrappedException(Throwable) to report exceptions in Java code. 
net.sourceforge.htmlunit.corejs.javascript.NativeJavaPackage(String)
          NativeJavaPackage is an internal class, do not use it directly. 
net.sourceforge.htmlunit.corejs.javascript.NativeJavaPackage(String, ClassLoader)
          NativeJavaPackage is an internal class, do not use it directly.