Message1042
I've got jython 2.2a1 release installed on a linux
fedora core 3 box.
if the classpath passed to jython, by means of the
environment variable CLASSPATH, contains empty element
("::") then jython interpreter won't initialize
properly but terminate imediatelly.
Though the problem is avoidable making sure that there
is not such empty elements, since the jvm (and I
believe the majority of Java programs) do simply ignore
them and the error message is far from informative, I
do classify it as a bug.
To reproduce:
$ export CLASSPATH=:/tmp
$ jython
couldn't open registry file: /home/valentin/.jython
Jython 2.2a1 on java1.4.2_08 (JIT: null)
error importing site
Traceback (innermost last):
File "/usr/local/share/jython-2.2a1/Lib/site.py",
line 66, in ?
AttributeError: java package 'sys' has no attribute
'modules'
However the following "equivalent" CP does not trigger it.
$ export CLASSPATH=/tmp |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:25 | admin | link | issue1303866 messages |
2008-02-20 17:17:25 | admin | create | |
|