Jochen Theodorou a écrit : > John Rose schrieb: > >> b61 has the same JVM bits as b59, the JavaOne preview release, which >> has a number of implementation limits; this is probably one of them. >> > > the example is from > http://weblogs.java.net/blog/forax/archive/2009/06/asm_now_support_1.html > which I thought is working... ah well... the NYI I see in the log sounds > very much like a "not yet implemented" ;) > > >> The example (not sure which you're trying) probably works in the mlvm >> version. Here is a set of demos that are known to work: >> http://hg.openjdk.java.net/mlvm/mlvm/file/tip/netbeans/indy-demo/src/ >> > > known to work with mlvm or with openjdk7 b61? Because with b61 it seems > to not to work. There are several compilation errors I could fix, but > still I got the very same error. There is still no mlvm build I can > try... or even better, build myself. > > >> The currently passing unit tests are in: >> http://hg.openjdk.java.net/mlvm/mlvm/file/tip/netbeans/meth/test >> >> (See esp. meth/test/jdk/java/dyn/MethodHandlesTest.java.) >> >> In general, as a "mere" matter of engineering process, a JVM built >> from the mlvm patches will be a few weeks ahead of the JDK7 code. >> > > well, the current b61 seems to be too basic to try anything. > > bye Jochen > >
You can also try the backport, source code is here : http://code.google.com/p/jvm-language-runtime/source/browse/#svn/trunk/invokedynamic-backport compile with ant and run it (with jdk5+) like this : java -javaagent:lib/jsr292-backport.jar MyMainClass It retro-weaves 1.7 compatible classes to run on jdk5+ VM. Currently you have to compile against latest classes found in mlvm repo but I suppose I can provide a jar with empty skeletons just to compile. All method handle adapters are implemented but some of them doesn't run at full speed (especially permute/spread/collect). I've just commited changes to enable bound object to be JITed. (a more convoluted patch than I want :) cheers, Rémi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---