From: Finn B. <bc...@us...> - 2001-03-13 20:17:12
|
Update of /cvsroot/jython/jython/org/python/compiler In directory usw-pr-cvs1:/tmp/cvs-serv27582 Modified Files: Module.java Log Message: Added Kent Johnson's patch to ensure jdk1.1 compilation. Index: Module.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/compiler/Module.java,v retrieving revision 2.4 retrieving revision 2.5 diff -C2 -r2.4 -r2.5 *** Module.java 2001/03/08 23:43:51 2.4 --- Module.java 2001/03/13 20:19:10 2.5 *************** *** 345,349 **** int sz = names.size(); if (sz ==0 && nullok) return null; ! return (String[])names.toArray(emptyStringAr); } --- 345,351 ---- int sz = names.size(); if (sz ==0 && nullok) return null; ! String[] nameArray = new String[sz]; ! names.copyInto(nameArray); ! return nameArray; } |