We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ddc1b8 commit 4f3929cCopy full SHA for 4f3929c
sources/net.sf.j2s.java.core/src/swingjs/JSUtil.java
@@ -324,7 +324,18 @@ public static String getStackTrace(int n) {
324
}
325
326
public static String getStackTrace() {
327
- return /** @j2sNative Clazz._getStackTrace() || */null;
+ /**
328
+ * @j2sNative return Clazz._getStackTrace();
329
+ *
330
+ */
331
+ {
332
+ try {
333
+ throw new NullPointerException();
334
+ } catch (Exception e) {
335
+ e.printStackTrace();
336
+ return e.getStackTrace().toString();
337
+ }
338
339
340
341
/**
0 commit comments