From: <fwi...@us...> - 2008-12-13 22:44:58
|
Revision: 5756 http://jython.svn.sourceforge.net/jython/?rev=5756&view=rev Author: fwierzbicki Date: 2008-12-13 22:44:55 +0000 (Sat, 13 Dec 2008) Log Message: ----------- uncomment call to setline which will now activate ASM code that will create a LineNumberTable in .class output. This will show line numbers in JVM generated stack traces. Modified Paths: -------------- trunk/jython/src/org/python/compiler/CodeCompiler.java Modified: trunk/jython/src/org/python/compiler/CodeCompiler.java =================================================================== --- trunk/jython/src/org/python/compiler/CodeCompiler.java 2008-12-13 16:08:36 UTC (rev 5755) +++ trunk/jython/src/org/python/compiler/CodeCompiler.java 2008-12-13 22:44:55 UTC (rev 5756) @@ -175,7 +175,7 @@ public void setline(int line) throws Exception { if (module.linenumbers) { - //FJW code.setline(line); + code.setline(line); loadFrame(); code.iconst(line); code.invokevirtual("org/python/core/PyFrame", "setline", "(I)V"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |