Commits

Anonymous committed c5a5949

Added Kent Johnson's patch to ensure jdk1.1 compilation.

  • Participants
  • Parent commits 6c6fd8a

Comments (0)

Files changed (1)

org/python/compiler/Module.java

     private String[] toNameAr(Vector names,boolean nullok) {
         int sz = names.size();
         if (sz ==0 && nullok) return null;
-        return (String[])names.toArray(emptyStringAr);
+        String[] nameArray = new String[sz];
+        names.copyInto(nameArray);
+        return nameArray;
     }