Le 05/11/2010 15:57, assembling signals a écrit :
Hello, everyone!
Sorry, not sure if it's the right mailinglist, here [
http://mail.openjdk.java.net/mailman/listinfo ] there were no mailinglist
listed for java.dyn.
This is the wrong mailing list, the right one is mlvm
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
I have a little RFE for java.dyn.Linkage.
Could it be possible to add another "registerBootstrapMethod(...)" method which
would accept Runnable as parameter instead of String.
This class disappears in latest update.
The spec was updated to allow to specify a boostrap method for each
invokedynamic.
Anyway, I think I don't really understand what you want to do with your
Runnable.
The boostrap method must return a CallSite and Runnable.run() return void.
This would have two litte advantages:
1) If would be refactoring-proof (normally, renaming of bootstrap method would
depend on also renaming the string argument);
2) There would be no warning about some unused private static method.
If there is a way to express constant method handles in Java, you also
have the these two properties.
We're working on that !
Best regards,
Ivan G S
Rémi