Jochen Theodorou wrote: > null > > and I want to call a method foo(), that means null is the receiver. But > instead of using the unreflected MH for foo() I use something that > replaces the receiver in a BMH.. so inside it will be a valid method > call, but will I come to this point even?
It appears to work fine in my test: $ $JAVA_HOME/bin/java -cp dist/InvokeDynamicTests.jar -XX:+InvokeDynamic com.sun.dynamic.test.DynamicAgainstNull reporting bootstrap method to JVM: bootstrap:(java.dyn.CallSite,java.lang.Object...)java.lang.Object DynCallSite: CallSite#9519074[target(java.lang.Object,java.lang.Integer)java.lang.Object => null] obj is null, integer is 1 obj is null, integer is 1 See the project here: http://kenai.com/projects/invoke-dynamic-tests There's only two example cases there so far: one for currying an initial argument (to demonstrate an early bug I found while hooking up JRuby) and the other for your DynamicAgainstNull invocation case. I'd like to add more. It also occurs to me a lot of these questions could be answered by you trying it out yourself. Can I help you get an MLVM build going? - Charlie --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en -~----------~----~----~----~------~----~------~--~---