RFR 8195694: ConstantBootstraps.invoke does not preserve variable arity
john.r.rose at oracle.com
Wed Jan 31 23:49:40 UTC 2018
On second thought, you should also use invokeWithArguments to support jumbo arities.
This tricky idiom should be put into a utility method, package private for starters. A version of it also appears in BSM invocation code.
> On Jan 31, 2018, at 3:23 PM, John Rose <john.r.rose at oracle.com> wrote:
> If you remove the old asType call it’s good!
>> On Jan 31, 2018, at 3:15 PM, Paul Sandoz <paul.sandoz at oracle.com> wrote:
>> Please review this fix to the invoke BSM so that it preserves variable arity, if any:
>> http://cr.openjdk.java.net/~psandoz/jdk/JDK-8195694-constant-bsms-invoke-arity/webrev/ <http://cr.openjdk.java.net/~psandoz/jdk/JDK-8195694-constant-bsms-invoke-arity/webrev/>
>> This will be pushed to the hs repo.
More information about the core-libs-dev