es4x
es4x copied to clipboard
Overload method call problem
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 ?
This is a graaljs issue: https://github.com/graalvm/graaljs/issues/37 still waiting for it to be fixed upstream.
https://github.com/reactiverse/es4x/pull/349
https://github.com/graalvm/graaljs/issues/3
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?