es4x icon indicating copy to clipboard operation
es4x copied to clipboard

Overload method call problem

Open sdnetwork opened this issue 6 years ago • 4 comments

Hi,

i try to do that (proxy a request) :

vertx.createHttpServer().requestHandler((req) =>{
var client = vertx.createHttpClient(new HttpClientOptions());
var c_req = client.request(...)
c_req.headers().setAll(req.headers()); 
....
})

but i get this error :

(io.vertx.core.http.impl.headers.VertxHttpHeaders)] failed due to: java.lang.IllegalArgumentException: Multiple applicable overloads found for method name setAll (candidates: [Method[public io.vertx.core.MultiMap io.vertx.core.http.impl.headers.VertxHttpHeaders.setAll(io.vertx.core.MultiMap)], Method[public io.netty.handler.codec.http.HttpHeaders io.netty.handler.codec.http.HttpHeaders.setAll(io.netty.handler.codec.http.HttpHeaders)]], arguments: [JavaObject[...(io.vertx.core.http.impl.headers.VertxHttpHeaders)] (HostObject)])

can you help me ?

sdnetwork avatar Feb 23 '19 23:02 sdnetwork

This is a graaljs issue: https://github.com/graalvm/graaljs/issues/37 still waiting for it to be fixed upstream.

pmlopes avatar Feb 25 '19 13:02 pmlopes

https://github.com/reactiverse/es4x/pull/349

laiweiwei avatar May 07 '20 12:05 laiweiwei

https://github.com/graalvm/graaljs/issues/3

laiweiwei avatar May 07 '20 12:05 laiweiwei

I am having the issue where i am returning an array of object from my javascript code and here on java side it is coming as empty polyglotmap,can you guys help?

tailangankur avatar Jun 29 '21 09:06 tailangankur