<AWT Dev> Integrated: JDK-8255681: print callstack in error case in runAWTLoopWithApp

Matthias Baesken mbaesken at openjdk.java.net
Wed Nov 4 07:51:55 UTC 2020


On Tue, 3 Nov 2020 08:45:20 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> Currently in case of occurences of an NSException in runAWTLoopWithApp we catch the exception just print a simple error message like this :
> 
> 2020-10-30 15:28:33.027 java[634:8435] Apple AWT Startup Exception: Cannot lock focus on image <NSImage 0x7fd350d7f9f0 Size={0, 0} RepProvider=(null)>, because it is size zero.
> 2020-10-30 15:28:33.306 java[634:8435] Apple AWT Restarting Native Event Thread
> 
> But we omit the callstack and loose valuable information. This change  adds the callstack to the output.

This pull request has now been integrated.

Changeset: ab9192e4
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/ab9192e4
Stats:     2 lines in 1 file changed: 1 ins; 0 del; 1 mod

8255681: print callstack in error case in runAWTLoopWithApp

Reviewed-by: clanger, serb

-------------

PR: https://git.openjdk.java.net/jdk/pull/1032


More information about the awt-dev mailing list