RFR: 8178480: Wrong exception being thrown on an invalid MethodType
JDK-8178387 subtly and inadvertently changed what exception was being
thrown by LambdaForm.compileToBytecode in
certain cases - this patch reverts this simplification and adds a
comment to warn against future attempts to
simplify too much..
Re: RFR: 8178480: Wrong exception being thrown on an invalid MethodType
On 2017-04-11 22:15, Paul Sandoz wrote
> Would you mind making the comment a little more descriptive? e.g.
> // Obtain the invoker MethodType outside of the following try block.
> // This ensures that an IllegalArgumentException is directly thrown if the
> // type would have 256 or more parameters