From: <fwi...@us...> - 2009-02-15 14:23:31
|
Revision: 6031 http://jython.svn.sourceforge.net/jython/?rev=6031&view=rev Author: fwierzbicki Date: 2009-02-15 14:23:28 +0000 (Sun, 15 Feb 2009) Log Message: ----------- Fix potential infinite loop (and wrong slice behavior) -- found with FindBugs Modified Paths: -------------- trunk/jython/src/org/python/core/PyJavaType.java Modified: trunk/jython/src/org/python/core/PyJavaType.java =================================================================== --- trunk/jython/src/org/python/core/PyJavaType.java 2009-02-14 19:17:04 UTC (rev 6030) +++ trunk/jython/src/org/python/core/PyJavaType.java 2009-02-15 14:23:28 UTC (rev 6031) @@ -845,6 +845,7 @@ int j = 0; for (int i = start; j < n; i += step) { newList.add(list.get(i)); + j++; } return Py.java2py(newList); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |