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

Make typesafe versions of System.arraycopy

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • core-libs
    • generic
    • solaris_8

      Please make typesafe versions of System.arraycopy. One way to do
      this would be to add the following overloadings:

      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.util.Arrays.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: