jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r439632 - in /jakarta/bsf/trunk: NOTICE src/org/apache/bsf/engines/java/JavaEngine.java src/org/apache/bsf/engines/javascript/JavaScriptEngine.java
Date Sat, 02 Sep 2006 18:37:48 GMT
Author: sanka
Date: Sat Sep  2 11:37:48 2006
New Revision: 439632

URL: http://svn.apache.org/viewvc?rev=439632&view=rev
Log:
Adding the missing '}' in JavaEngine class

Added:
    jakarta/bsf/trunk/NOTICE
Modified:
    jakarta/bsf/trunk/src/org/apache/bsf/engines/java/JavaEngine.java
    jakarta/bsf/trunk/src/org/apache/bsf/engines/javascript/JavaScriptEngine.java

Added: jakarta/bsf/trunk/NOTICE
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/NOTICE?rev=439632&view=auto
==============================================================================
--- jakarta/bsf/trunk/NOTICE (added)
+++ jakarta/bsf/trunk/NOTICE Sat Sep  2 11:37:48 2006
@@ -0,0 +1,6 @@
+Beans Scripting Framework
+Copyright 2003-2006 The Apache Software Foundation.
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+ 

Modified: jakarta/bsf/trunk/src/org/apache/bsf/engines/java/JavaEngine.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/src/org/apache/bsf/engines/java/JavaEngine.java?rev=439632&r1=439631&r2=439632&view=diff
==============================================================================
--- jakarta/bsf/trunk/src/org/apache/bsf/engines/java/JavaEngine.java (original)
+++ jakarta/bsf/trunk/src/org/apache/bsf/engines/java/JavaEngine.java Sat Sep  2 11:37:48
2006
@@ -348,4 +348,5 @@
             gf = new GeneratedFile(file,fos,className);
         }
         return gf;
-    }
\ No newline at end of file
+    }
+}
\ No newline at end of file

Modified: jakarta/bsf/trunk/src/org/apache/bsf/engines/javascript/JavaScriptEngine.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/src/org/apache/bsf/engines/javascript/JavaScriptEngine.java?rev=439632&r1=439631&r2=439632&view=diff
==============================================================================
--- jakarta/bsf/trunk/src/org/apache/bsf/engines/javascript/JavaScriptEngine.java (original)
+++ jakarta/bsf/trunk/src/org/apache/bsf/engines/javascript/JavaScriptEngine.java Sat Sep
 2 11:37:48 2006
@@ -26,10 +26,10 @@
 import org.apache.bsf.util.BSFFunctions;
 import org.mozilla.javascript.Context;
 import org.mozilla.javascript.EvaluatorException;
+import org.mozilla.javascript.Function;
 import org.mozilla.javascript.ImporterTopLevel;
 import org.mozilla.javascript.JavaScriptException;
 import org.mozilla.javascript.NativeJavaObject;
-import org.mozilla.javascript.ScriptRuntime;
 import org.mozilla.javascript.Scriptable;
 import org.mozilla.javascript.WrappedException;
 import org.mozilla.javascript.Wrapper;
@@ -86,7 +86,9 @@
             cx.setDebugger(null, null);
             
             retval =
-                ScriptRuntime.call(cx, fun, global, args, global);
+                ((Function) fun).call(cx, global, global, args);
+            
+//                ScriptRuntime.call(cx, fun, global, args, global);
 
             if (retval instanceof Wrapper)
                 retval = ((Wrapper) retval).unwrap();



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


Mime
View raw message