xpenatan / gdx-teavm

Run Libgdx in a webbrowser with teavm
Apache License 2.0
108 stars 16 forks source link

Miss class DelegateCode and ContinueReflection #29

Closed nicolaichuk closed 7 years ago

nicolaichuk commented 7 years ago

@xpenatan, @fpetrola: It missed this class in generate js code:

com.dragome.commons.DelegateCode com.dragome.commons.ContinueReflection

Its used in this code:

dragomeJs.addTypeAnnotation("com.dragome.web.html.dom.w3c.MessageEventExtension", "com.dragome.commons.DelegateCode", "::getDataAsString::eval", "this.node.data"); 
dragomeJs.addTypeAnnotation("com.dragome.web.html.dom.w3c.HTMLImageElementExtension", "com.dragome.commons.DelegateCode", "::getHeightAsInteger::eval", "this.node.height"); 
dragomeJs.addTypeAnnotation("com.dragome.web.services.RequestExecutorImpl$XMLHttpRequestExtension", "com.dragome.commons.DelegateCode", "::sendSync::eval", "this.node.send($1)"); 
dragomeJs.addTypeAnnotation("com.dragome.web.html.dom.w3c.HTMLImageElementExtension", "com.dragome.commons.DelegateCode", "::getWidthAsInteger::eval", "this.node.width"); 
dragomeJs.addTypeAnnotation("com.dragome.web.html.dom.w3c.ArrayBufferFactory", "com.dragome.commons.DelegateCode", "::createArrayBuffer::ignore", "true"); 

dragomeJs.addTypeAnnotation("com.dragome.utils.DragomeCallsiteFactory$InvocationHandlerForLambdas", "com.dragome.commons.ContinueReflection", "::invoke::", ""); 
dragomeJs.addTypeAnnotation("com.dragome.services.ServiceInvocation", "com.dragome.commons.ContinueReflection", "::invoke::", ""); 

All this lines throw ClassNotFoundException here.

fpetrola commented 7 years ago

sorry it's a bug introduced in last commit, I'll fix it soon

fpetrola commented 7 years ago

fixed in https://github.com/dragome/dragome-sdk/commit/7171320d59cc59ab35949966dc7c4c8cb3756fb5