Description
ArrayUtils.toPrimitive(Object) supports only Integer, Long, Short, Double and Float. Boolean, Byte, and Character are not supported.
This causes e.g. also calls to MethodUtils.invokeStaticMethod(...) to fail if e.g. a Boolean array is provided as the argument for a primitive boolean vararg because getVarArgs does expect ArrayUtils to do the right thing:
if (varArgComponentType.isPrimitive()) { // unbox from wrapper type to primitive type varArgsArray = ArrayUtils.toPrimitive(varArgsArray); }
Attachments
Issue Links
- links to