Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4882681

(coll) Make typesafe array copy operations in java.util.Arrays

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • core-libs

      Please make typesafe versions of array copy operations. One way to do
      this would be to add the following methods to java.util.Arrays:

      static <T> void arrayCopy(T[] chicken, T[] egg);
      static void arrayCopy(int[] src, int[] dest);
      static void arrayCopy(float[] src, float[] dest);
      etc.

      We should also consider adding corresponding methods to java.lang.System.

      ###@###.### 2003-06-23

            martin Martin Buchholz
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: