MethodHandle.asSpreader() and MethodHandle.asCollector() have the assertion: "WrongMethodTypeException - if the implied asType call fails" MethodHandle.asType() assertion: "WrongMethodTypeException - if the conversion cannot be made" Which is probably covered by IllegalArgumentException of asSpreader() and asCollector(). If there are any cases which lead to WrongMethodTypeException thrown by asSpreader() or asCollector(), I will be grateful for them.
|