Possible Duplicate:
Arrays.asList() not working as it should?
Apparently the return type of Arrays.asList(new int[] { 1, 2, 3 });
is List<int[]>
. This seems totally broken to me. Does this have something to do with Java not autoboxing arrays of primitive types?