--- old/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m 2017-09-27 07:55:57.000000000 -0700 +++ new/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m 2017-09-27 07:55:56.000000000 -0700 @@ -77,6 +77,8 @@ - (void)dealloc { + [[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:nil]; + [fApplicationName release]; fApplicationName = nil; @@ -138,10 +140,18 @@ [super finishLaunching]; + [[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self]; + // inform any interested parties that the AWT has arrived and is pumping [[NSNotificationCenter defaultCenter] postNotificationName:JNFRunLoopDidStartNotification object:self]; } +- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center + shouldPresentNotification:(NSUserNotification *)notification +{ + return YES; // We always show notifications to the user +} + - (void) registerWithProcessManager { // Headless: NO