From: <cg...@us...> - 2009-01-21 21:26:59
|
Revision: 5954 http://jython.svn.sourceforge.net/jython/?rev=5954&view=rev Author: cgroves Date: 2009-01-21 21:26:50 +0000 (Wed, 21 Jan 2009) Log Message: ----------- Turn includeJavaStackInExceptions on by default as it was always done in previous versions. Modified Paths: -------------- trunk/jython/src/org/python/compiler/JavaMaker.java trunk/jython/src/org/python/core/Options.java trunk/jython/src/org/python/util/jython.java Modified: trunk/jython/src/org/python/compiler/JavaMaker.java =================================================================== --- trunk/jython/src/org/python/compiler/JavaMaker.java 2009-01-21 20:47:19 UTC (rev 5953) +++ trunk/jython/src/org/python/compiler/JavaMaker.java 2009-01-21 21:26:50 UTC (rev 5954) @@ -46,13 +46,12 @@ super.addProxy(); // _initProxy method - Code code = classfile.addMethod("__initProxy__", - "([Ljava/lang/Object;)V", Modifier.PUBLIC); + Code code = classfile.addMethod("__initProxy__", "([Ljava/lang/Object;)V", Modifier.PUBLIC); code.visitVarInsn(ALOAD, 0); code.visitLdcInsn(pythonModule); code.visitLdcInsn(pythonClass); - + code.visitVarInsn(ALOAD, 1); code.visitMethodInsn(INVOKESTATIC, "org/python/core/Py", "initProxy", "(" + $pyProxy + $str + $str + $objArr + ")V"); code.visitInsn(RETURN); Modified: trunk/jython/src/org/python/core/Options.java =================================================================== --- trunk/jython/src/org/python/core/Options.java 2009-01-21 20:47:19 UTC (rev 5953) +++ trunk/jython/src/org/python/core/Options.java 2009-01-21 21:26:50 UTC (rev 5954) @@ -21,7 +21,7 @@ * trace in addition to the Python traceback. This can slow raising * considerably. */ - public static boolean includeJavaStackInExceptions = false; + public static boolean includeJavaStackInExceptions = true; /** * When true, python exception raised in overridden methods will be shown on @@ -63,7 +63,7 @@ * A directory where the dynamically generated classes are written. Nothing is * ever read from here, it is only for debugging purposes. */ - public static String proxyDebugDirectory = null; + public static String proxyDebugDirectory; /** * If true, Jython will use the first module found on sys.path where java Modified: trunk/jython/src/org/python/util/jython.java =================================================================== --- trunk/jython/src/org/python/util/jython.java 2009-01-21 20:47:19 UTC (rev 5953) +++ trunk/jython/src/org/python/util/jython.java 2009-01-21 21:26:50 UTC (rev 5954) @@ -7,6 +7,7 @@ import java.io.InputStream; import java.nio.charset.Charset; import java.util.List; +import java.util.Properties; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @@ -131,8 +132,7 @@ } // Setup the basic python system state from these options - PySystemState.initialize(PySystemState.getBaseProperties(), - opts.properties, opts.argv); + PySystemState.initialize(PySystemState.getBaseProperties(), opts.properties, opts.argv); // Now create an interpreter InteractiveConsole interp = newInterpreter(); @@ -339,7 +339,7 @@ public boolean fixInteractive; public boolean help, version; public String[] argv; - public java.util.Properties properties; + public Properties properties; public String command; public List<String> warnoptions = Generic.list(); public String encoding; @@ -351,7 +351,7 @@ jar = fixInteractive = false; interactive = notice = true; runModule = false; - properties = new java.util.Properties(); + properties = new Properties(); help = version = false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |