Re: LambdaForm toString() of MethodHandles

2012-11-19 Thread John Rose
On Nov 18, 2012, at 5:50 PM, Douglas Campos wrote: > When doing MH.toString(), the LambdaForm output (as enabled by > java.lang.invoke.MethodHandle.DEBUG_NAMES) is WAY more readable. Any reasons > for not using it as the default beyond perf cost? Hi Douglas! The debugging output reveals lots o

Re: Way to statically initialize a class before or during MethodHandle creation, Unsafe crashes JVM

2012-11-19 Thread Remi Forax
On 11/19/2012 12:20 PM, Jochen Theodorou wrote: > Am 16.11.2012 20:43, schrieb Jochen Theodorou: >> Am 16.11.2012 17:31, schrieb Remi Forax: >> [...] >>> is called the first time you call a constructor, a static >>> method or get/set the value of a static field. >> Remi I am aware of that, but I c

Re: Way to statically initialize a class before or during MethodHandle creation, Unsafe crashes JVM

2012-11-19 Thread Jochen Theodorou
Am 16.11.2012 20:43, schrieb Jochen Theodorou: > Am 16.11.2012 17:31, schrieb Remi Forax: > [...] >> is called the first time you call a constructor, a static >> method or get/set the value of a static field. > > Remi I am aware of that, but I cannot simply call a static method, or > create an ins