From: boisgera <re...@bu...> - 2008-11-18 16:37:52
|
New submission from boisgera <Seb...@en...>: An error was introduced by revision 5553 when the PySystemState prefix was made a PyObject instead of a String. To reproduce the error, compiled attached Main.java and do: $ java Main Exception in thread "main" java.lang.IllegalArgumentException: Cannot create PyString from null! at org.python.core.PyString.<init>(PyString.java:32) at org.python.core.PyString.<init>(PyString.java:39) at org.python.core.Py.newString(Py.java:576) at org.python.core.PySystemState.initRegistry(PySystemState.java:462) at org.python.core.PySystemState.initialize(PySystemState.java:547) at org.python.core.PySystemState.initialize(PySystemState.java:528) at org.python.core.PySystemState.initialize(PySystemState.java:520) at Main.main(Main.java:9) The code snippet 'Py.newString(prefix)' throws an error when prefix is null and many constructs in the code hint that a null value for prefix (or PyNone now) should be considered correct. ---------- components: Core files: Main.java messages: 3786 nosy: boisgera, pjenvey severity: normal status: open title: undefined sys.prefix breaks initialization versions: 2.5b0 Added file: http://bugs.jython.org/file560/Main.java _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1173> _______________________________________ |