Skip to content

Commit 58efdd9

Browse files
hansonrhansonr
authored andcommitted
allows error report for EventDispatchThread TypeError
1 parent e7ae08c commit 58efdd9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sources/net.sf.j2s.java.core/src/java/awt/EventDispatchThread.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,11 @@ private void processException(Throwable e, boolean isModal) {
423423
throw (RuntimeException) e;
424424
} else if (e instanceof Error) {
425425
throw (Error) e;
426+
} else {
427+
boolean isTypeError = (/** @j2sNative !!e.stack || */false);
428+
if (isTypeError) {
429+
e.printStackTrace();
430+
}
426431
}
427432
}
428433
}

0 commit comments

Comments
 (0)