-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
17
-
aarch64
-
linux
We have the following code invoking `CompletableFuture.thenApplyAsync`:
```
return new Promise(this.future.thenApplyAsync(function(data) {
if(typeof data === 'string' || data instanceof String) {
try {
data = JSON.parse(data);
} catch (zerror) { }
}
return callback(data);
})
```
This code runs as expected on x86, but we see the following failure on aarch64:
```
ECMAException: TypeError: Can not invoke method [jdk.dynalink.beans.OverloadedDynamicMethod\n CompletableFuture java.util.concurrent.CompletableFuture.thenApplyAsync(Function,Executor)\n CompletableFuture java.util.concurrent.CompletableFuture.thenApplyAsync(Function)\n] with the passed arguments; they do not match any of its method signatures.
```
JDK version is 17, Nashorn version is 15.4.
```
return new Promise(this.future.thenApplyAsync(function(data) {
if(typeof data === 'string' || data instanceof String) {
try {
data = JSON.parse(data);
} catch (zerror) { }
}
return callback(data);
})
```
This code runs as expected on x86, but we see the following failure on aarch64:
```
ECMAException: TypeError: Can not invoke method [jdk.dynalink.beans.OverloadedDynamicMethod\n CompletableFuture java.util.concurrent.CompletableFuture.thenApplyAsync(Function,Executor)\n CompletableFuture java.util.concurrent.CompletableFuture.thenApplyAsync(Function)\n] with the passed arguments; they do not match any of its method signatures.
```
JDK version is 17, Nashorn version is 15.4.