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
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
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