JDK-4882666 : Make typesafe versions of System.arraycopy
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2003-06-23
  • Updated: 2006-08-25
  • Resolved: 2006-08-25
Related Reports
Duplicate :  
Relates :  
Description
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

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

PUBLIC COMMENTS ...
10-06-2004

EVALUATION Tiger is the right time to do small things to improve type safety using generics. ###@###.### 2003-06-23
23-06-2003