Error in sequence initialisation of Lookup

2009-06-05 Thread Rémi Forax
This program throw an Internal Error import java.dyn.MethodHandle; import java.dyn.MethodHandles; import java.dyn.MethodType; public class MethodHandleInvocationTest { public static void sayHello(String message) { System.out.println("hello " + message); } public static void main(

bootstrap method registration is enabled AFTER class initialization

2009-06-05 Thread Yuri Gaevsky
Hi John, The following program: --- LinkageTest.java --- import java.dyn.*; import java.io.*; public class LinkageTest { public static void main(String[] argv) { System.exit(run(argv, System.out)); } public static int run(String[] argv, PrintStream out) { Linka

Re: bootstrap method registration is enabled AFTER class initialization

2009-06-05 Thread Rémi Forax
Yuri Gaevsky a écrit : > Hi John, > Hi, Yuri, the current implementation of invokedynamic is really dynamic :) And as far as I know, the expert group has not decided if this program is legal or not. For the record, the problem with this kind of program is that bsm() can be called more that once

Re: bootstrap method registration is enabled AFTER class initialization

2009-06-05 Thread John Rose
Thanks, Yuri; that's a good negative test. The problem with allowing that BSM registration is that racing threads can attempt to use indy sites before a BSM is installed. It's minor problem, arguably the user's fault not ours, but I think it's both harmless and helpful to require the BSM to

Re: JSR 292 EG room open at JavaOne

2009-06-05 Thread John Rose
Unless someone requests a meeting today, I will not be present in the JCP room after 1:30, so I can go to the Hotspot Inside Out JVM BOF. -- John On Jun 4, 2009, at 11:50 AM, John Rose wrote: > From just after 12:00 today until 2:00 I'll be working quietly in > the Nob Hill room on the 4th f