You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bsf-dev@jakarta.apache.org by or...@apache.org on 2004/06/14 19:08:21 UTC

cvs commit: jakarta-bsf/src/org/apache/bsf/engines/javascript JavaScriptEngine.java

orlikowski    2004/06/14 10:08:21

  Modified:    src/org/apache/bsf/engines/javascript JavaScriptEngine.java
  Log:
  Fix a build break in the Rhino engine; The EvaluatorException constructor
  using a string argument only is now class protected, which means that we
  must use the public constuctor. However, the public constructor requires
  source and line number information...which makes no sense inside of a
  call(). Punting for now...
  
  Revision  Changes    Path
  1.8       +4 -1      jakarta-bsf/src/org/apache/bsf/engines/javascript/JavaScriptEngine.java
  
  Index: JavaScriptEngine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bsf/src/org/apache/bsf/engines/javascript/JavaScriptEngine.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JavaScriptEngine.java	16 Feb 2004 18:43:00 -0000	1.7
  +++ JavaScriptEngine.java	14 Jun 2004 17:08:21 -0000	1.8
  @@ -115,8 +115,11 @@
               // REMIND: convert arg list Vectors here?
   
               Object fun = global.get(method, global);
  +            // NOTE: Source and line arguments are nonsense in a call().
  +            //       Any way to make these arguments *sensible?
               if (fun == Scriptable.NOT_FOUND)
  -                throw new EvaluatorException("function " + method + " not found.");
  +                throw new EvaluatorException("function " + method +
  +                                             " not found.", "none", 0);
   
               cx.setOptimizationLevel(-1);
               cx.setGeneratingDebug(false);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-dev-help@jakarta.apache.org