I've just noticed the new methods in java.util.Arrays
There is one with the signature
public static T copyOf(U original, int newLength, Class<? extends T> newType)
Can anyone explain why it was decided to specify the target type as the array type instead of the component type?
Wouldn't the latter be more natural?