Java Doc Bugs

2010-08-14 Thread Howard Lovatt
There are some minor Java Doc Bugs in: http://cr.openjdk.java.net/~jrose/pres/indy-javadoc-mlvm/ In particular the Java Doc for: MethodHandles.dropArguments The example given is incorrect and should be something like: final MethodType types = MethodType.methodType(

Re: Java Doc Bugs

2010-08-14 Thread John Rose
Thanks, Howard. Will fix in next push. I changed the example to use the assertEquals function from JUnit: MethodHandle cat = lookup().findVirtual(String.class, concat, methodType(String.class, String.class)); assertEquals(xy, (String) cat.invokeExact(x, y)); MethodHandle d0 =