Skip to content

Commit

Permalink
8255681: print callstack in error case in runAWTLoopWithApp
Browse files Browse the repository at this point in the history
Reviewed-by: clanger, serb
  • Loading branch information
MBaesken committed Nov 4, 2020
1 parent c7a2c24 commit ab9192e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -334,6 +334,7 @@ + (void) runAWTLoopWithApp:(NSApplication*)app {
[app run];
} @catch (NSException* e) {
NSLog(@"Apple AWT Startup Exception: %@", [e description]);
NSLog(@"Apple AWT Startup Exception callstack: %@", [e callStackSymbols]);
NSLog(@"Apple AWT Restarting Native Event Thread");

[app stop:app];
Expand Down

1 comment on commit ab9192e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.