summaryrefslogtreecommitdiff
path: root/dev-java/bsf/files/bsf-2.4.0-PyJavaInstance.patch
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-02-03 23:46:32 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2024-02-04 09:07:45 +0100
commitc95168b3039c52bd929a082e647d437d62b9e26a (patch)
tree6a063b79f3cc1c1aba85962ac5acd7336da55651 /dev-java/bsf/files/bsf-2.4.0-PyJavaInstance.patch
parent8e9e3af46512f2a942a15f911ddcd88666599ec1 (diff)
downloadgentoo-c95168b3039c52bd929a082e647d437d62b9e26a.tar.gz
gentoo-c95168b3039c52bd929a082e647d437d62b9e26a.tar.bz2
gentoo-c95168b3039c52bd929a082e647d437d62b9e26a.zip
dev-java/bsf: drop 2.4.0-r3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/35174 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/bsf/files/bsf-2.4.0-PyJavaInstance.patch')
-rw-r--r--dev-java/bsf/files/bsf-2.4.0-PyJavaInstance.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/dev-java/bsf/files/bsf-2.4.0-PyJavaInstance.patch b/dev-java/bsf/files/bsf-2.4.0-PyJavaInstance.patch
deleted file mode 100644
index 4e8c4de7b015..000000000000
--- a/dev-java/bsf/files/bsf-2.4.0-PyJavaInstance.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- a/src/org/apache/bsf/engines/jython/JythonEngine.java.orig 2015-07-04 08:00:17.120000000 +0000
-+++ b/src/org/apache/bsf/engines/jython/JythonEngine.java 2015-07-04 08:04:55.230000000 +0000
-@@ -26,7 +26,7 @@
- import org.apache.bsf.util.BSFFunctions;
- import org.python.core.Py;
- import org.python.core.PyException;
--import org.python.core.PyJavaInstance;
-+import org.python.core.PyJavaType;
- import org.python.core.PyObject;
- import org.python.util.InteractiveInterpreter;
-
-@@ -110,8 +110,9 @@
-
- Object result = interp.eval ("bsf_temp_fn()");
-
-- if (result != null && result instanceof PyJavaInstance)
-- result = ((PyJavaInstance)result).__tojava__(Object.class);
-+ if (result != null && result instanceof PyJavaType)
-+ //result = ((PyJavaInstance)result).__tojava__(Object.class);
-+ result = PyJavaType.wrapJavaObject(result).__tojava__(Object.class);
- return result;
- } catch (PyException e) {
- throw new BSFException (BSFException.REASON_EXECUTION_ERROR,
-@@ -126,8 +127,9 @@
- Object script) throws BSFException {
- try {
- Object result = interp.eval (byteify(script.toString ()));
-- if (result != null && result instanceof PyJavaInstance)
-- result = ((PyJavaInstance)result).__tojava__(Object.class);
-+ if (result != null && result instanceof PyJavaType)
-+ //result = ((PyJavaInstance)result).__tojava__(Object.class);
-+ result = PyJavaType.wrapJavaObject(result).__tojava__(Object.class);
- return result;
- } catch (PyException e) {
- throw new BSFException (BSFException.REASON_EXECUTION_ERROR,