File bsh2-standard-script-api.patch of Package bsh2

Index: BeanShell-2.0b5/engine/src/bsh/engine/BshScriptEngine.java
===================================================================
--- BeanShell-2.0b5.orig/engine/src/bsh/engine/BshScriptEngine.java	2005-06-12 13:02:26.000000000 +0200
+++ BeanShell-2.0b5/engine/src/bsh/engine/BshScriptEngine.java	2009-11-25 09:17:39.043206986 +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
openSUSE Build Service is sponsored by