[AC-6553] Android: Hyperloop unable to call Throwable.setStackTrace
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | n/a | 
| Status | Open | 
| Resolution | Unresolved | 
| Affected Version/s | n/a | 
| Fix Version/s | n/a | 
| Components | Hyperloop | 
| Labels | n/a | 
| Reporter | Michael Sharman | 
| Assignee | Abir Mukherjee | 
| Created | 2020-06-05T09:12:31.000+0000 | 
| Updated | 2020-06-05T09:14:01.000+0000 | 
Description
	I've been trying to create via hyperloop instances of java.lang.Throwable and calling setStackTrace(), unfortunately the code is failing with the following in the log output:
{noformat}
[ERROR] HyperloopProxy: (main) [45,461] Unable to resolve method call. Class: java.lang.Throwable, method name: setStackTrace, args: [[Ljava.lang.Object;@fb25d4c]
{noformat}
This is the relevant code:
const Throwable = require("java.lang.Throwable");
const StackTraceElement = require("java.lang.StackTraceElement");
const throwable = new Throwable("Test Exception");
throwable.setStackTrace( [ new StackTraceElement( "ClassName", "symbol", "file.js", 1) ] );
Attachments
| File | Date | Size | 
|---|---|---|
| hyperloop-stacktrace.zip | 2020-06-05T09:10:05.000+0000 | 3130784 | 
No comments