Re: A pure Java example with reflective access behaving differently with invokeWithArguments() compared to core reflection's invoke() (Re: Strange observation: MethodHandle.invokeWithArguments() would

2018-06-10 Thread Peter Levart
Hi Rony, I showed you some code samples in Java language, so I had to explain what java compiler is doing too, for you to fully understand what's going on. You see, when using Java and HM.invokeWithArguments(), conversions (varargs included) are taking place at two levels. The 1st conversion

Re: A pure Java example with reflective access behaving differently with invokeWithArguments() compared to core reflection's invoke() (Re: Strange observation: MethodHandle.invokeWithArguments() would

2018-06-10 Thread Rony G. Flatscher
Dear Peter: thank you very much for your thorough and extensive analysis taking the evolvement of Java into account! You use the Java compiler and its behaviour (which adds syntax sugar to the Java language and is known to stick strictly to the Java language specification) for explanations