Am 07.02.2012 18:29, schrieb Jim Laskey:
Worked okay for me.  So must be addressed in a later release. :-/

later than jdk7u2? oh boy. I would feel better if I could find a bug report that shows the problem and that is resolved. Then I would at least have something for the release notes. But I didn't find anything that looks fitting. The only one that seems to be slightly fitting was fixed a year ago and surely that fix is part of jdk7u2 already.

You said for
MethodType type = MethodType.methodType(Constructor.class, Class[].class);
MethodHandle mh = MethodHandles.lookup().findVirtual(Class.class, 
"getDeclaredConstructor", type);
MethodType target = MethodType.methodType(Object.class, Object.class, 
Object.class);
mh = mh.asType(target);
mh.invokeWithArguments(Class.class,new Class[0]);

I probably have to wrap something... can you explain what you mean?

bye Jochen
--
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org

--
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to jvm-languages@googlegroups.com.
To unsubscribe from this group, send email to 
jvm-languages+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en.

Reply via email to