Changes to method handles between jdk8 b103 and 114?

Mark Roos mroos at roos.com
Tue Dec 10 20:58:19 PST 2013


I just got back to my Smalltalk efforts and tried to run some code against 
114 ( that worked in 103).

I see lots of these errors and I seem to recall that changes are being 
made and wonder if someone
could point me towards the changes I need to make.

java.lang.BootstrapMethodError: call site initialization exception
        at java.lang.invoke.CallSite.makeSite(CallSite.java:328)
        at 
java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:296)
        at rtPbc.r1.invoke(RiRmtViewDebugger class 
inspectError:frames:jFrames::8)
        at rtalk.lang.callsite.RtDebugger.queueError(RtDebugger.java:199)
        at 
rtalk.lang.primitives.RtalkPrims.sendSmToRtalk(RtalkPrims.java:107)
        at 
rtalk.systemMessage.portal.SmPortalForRtalk$1.run(SmPortalForRtalk.java:51)

Caused by: java.lang.invoke.WrongMethodTypeException: 
cannot convert MethodHandle(Lookup,String,MethodType,Object[])RtCallSite 
to (Lookup,String,MethodType,Object,Object)Object

        at 
java.lang.invoke.MethodHandle.asTypeUncached(MethodHandle.java:776)
        at java.lang.invoke.MethodHandle.asType(MethodHandle.java:770)
        at java.lang.invoke.Invokers.checkGenericType(Invokers.java:366)
        at java.lang.invoke.CallSite.makeSite(CallSite.java:285)

I am guessing it may have to do with the varArgs 

My bootstraps look like this,  I use the varArgs so I only need one 
bootstrap for any airity

RtCallSite bootStrapSelf(MethodHandles.Lookup callerLookup, String name, 
MethodType type, Object[] arg)

thanks
mark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20131210/599dbac2/attachment.html 


More information about the mlvm-dev mailing list