JDK-4882681 : (coll) Make typesafe array copy operations in java.util.Arrays
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2003-06-23
  • Updated: 2012-10-08
  • Resolved: 2006-08-25
Related Reports
Duplicate :  
Relates :  
Description
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

Comments
EVALUATION Equivalent functionality (copyOf, copyOfRange) was added by 4655503: need a resize method to go with clone on all array types
25-08-2006

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
08-09-2004

PUBLIC COMMENTS ...
08-09-2004

EVALUATION Good idea. ###@###.### 2003-06-23
23-06-2003