Sophie

Sophie

distrib > Mageia > 2 > x86_64 > media > core-release-src > by-pkgid > 4294e094220f9e76a9576270d659f9b7 > files > 12

bsh2-2.0b5-4.mga2.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