Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > d8590e83e63943a6077757df9a6a759a > files > 12

bsh2-2.0b5-6.mga3.src.rpm

--- engine/src/bsh/engine/BshScriptEngine.java	2005-06-12 13:02:26.000000000 +0200
+++ engine/src/bsh/engine/BshScriptEngine.java-gil	2010-12-31 16:54:50.000000000 +0100
@@ -227,6 +227,11 @@
 			throw new ScriptException( e.toString() );
 		}
 	}
+        //JDK6 compatible method  
+        public Object invokeMethod( Object thiz, String name, Object... args ) throws ScriptException, NoSuchMethodException  
+        {  
+            return invoke(thiz, name, args);  
+        } 
 
 	/**
 	 * Same as invoke(Object, String, Object...) with <code>null</code> as the
@@ -247,6 +252,11 @@
 	{
 		return invoke( getGlobal(), name, args );
 	}
+        //JDK6 compatible method  
+        public Object invokeFunction(String name, Object... args ) throws ScriptException, NoSuchMethodException  
+        {  
+            return invoke(name, args);  
+        } 
 
 		/**
 	 * Returns an implementation of an interface using procedures compiled in the