Posted By:
Michael_Garwood
Posted On:
Friday, December 26, 2003 06:21 AM
Let me try to be a little more specific with my question.
The following JDK code throws an NegativeArraySizeException at the line Class[] out = new Class[l];:
static Class[] copy(Class[] in) {
int l = in.length;
if (l == 0)
return in;
Class[] out = new Class[l];
for (int i = 0; i < l; i++)
out[i] = in[i];
return out;
}
Can someone explain how it is possbile to create an array with a negative size?
Regargs,
Michael