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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 6
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: