Affects: 4.x and 5.x
I'm not sure whether there is a bug or not.
ClassUtils#resolvePrimitiveClassName(String name)
public static Class<?> resolvePrimitiveClassName(@Nullable String name) {
Class<?> result = null;
// Most class names will be quite long, considering that they
// SHOULD sit in a package, so a length check is worthwhile.
if (name != null && name.length() <= 8) {
// Could be a primitive - likely.
result = primitiveTypeNameMap.get(name);
}
return result;
}
The length of "boolean[]" is 9. How to resolve the primitive class like boolean[].class?