Message5974
There is an error when the argument and zero in jsr223 proxy! correction follows below.
Index: src/org/python/jsr223/PyScriptEngine.java
===================================================================
--- src/org/python/jsr223/PyScriptEngine.java (revisão 7093)
+++ src/org/python/jsr223/PyScriptEngine.java (cópia de trabalho)
@@ -144,7 +144,13 @@
PyObject pyMethod = thiz.__findattr__(method.getName());
if (pyMethod == null)
throw new NoSuchMethodException(method.getName());
- PyObject result = pyMethod.__call__(Py.javas2pys(args));
+
+ PyObject result;
+ if(args != null) {
+ result = pyMethod.__call__(Py.javas2pys(args));
+ } else {
+ result = pyMethod.__call__();
+ }
return result.__tojava__(Object.class);
} catch (PyException pye) {
throw scriptException(pye); |
|
Date |
User |
Action |
Args |
2010-08-15 20:02:34 | denis.rangel | set | recipients:
+ denis.rangel |
2010-08-15 20:02:34 | denis.rangel | set | messageid: <1281902554.77.0.411576683675.issue1642@psf.upfronthosting.co.za> |
2010-08-15 20:02:34 | denis.rangel | link | issue1642 messages |
2010-08-15 20:02:33 | denis.rangel | create | |
|