From: Samuele P. <ped...@us...> - 2000-11-19 22:32:48
|
Update of /cvsroot/jython/jython/Tools/jythonc In directory slayer.i.sourceforge.net:/tmp/cvs-serv3159/Tools/jythonc Modified Files: PythonModule.py compile.py Log Message: * [Bug #122610] SecEx in MS applerviewer, now if Py.frozen true: sys.path=[] cache not init. * BytecodeLoader now uses findLoadedClass to avoid redef exc. More robust jythonc/compile.getJavaClass. * mini-fix to enable compilation inside Sun Forte (tm). * makeup Index: PythonModule.py =================================================================== RCS file: /cvsroot/jython/jython/Tools/jythonc/PythonModule.py,v retrieving revision 2.11 retrieving revision 2.12 diff -C2 -r2.11 -r2.12 *** PythonModule.py 2000/11/17 21:18:22 2.11 --- PythonModule.py 2000/11/19 22:32:45 2.12 *************** *** 212,217 **** defaultProps = { ! "python.packages.paths": "", ! "python.packages.directories": "", "python.options.showJavaExceptions": "true", "python.modules.builtin": "exceptions:org.python.core.exceptions", --- 212,218 ---- defaultProps = { ! ## now redundant ! ## "python.packages.paths": "", ! ## "python.packages.directories": "", "python.options.showJavaExceptions": "true", "python.modules.builtin": "exceptions:org.python.core.exceptions", Index: compile.py =================================================================== RCS file: /cvsroot/jython/jython/Tools/jythonc/compile.py,v retrieving revision 2.13 retrieving revision 2.14 diff -C2 -r2.13 -r2.14 *** compile.py 2000/11/17 12:44:21 2.13 --- compile.py 2000/11/19 22:32:45 2.14 *************** *** 115,119 **** if c.endswith("[]"): # java1.1 allows only this ! return Class.getClass(reflect.Array.newInstance(getJavaClass(c[:-2]),0)) try: return util.findClass(c) #Class.forName(c) --- 115,122 ---- if c.endswith("[]"): # java1.1 allows only this ! el = getJavaClass(c[:-2]) ! if el == None: ! return None ! return Class.getClass(reflect.Array.newInstance(el,0)) try: return util.findClass(c) #Class.forName(c) |