Skip to content
Permalink
Browse files
8272806: [macOS] "Apple AWT Internal Exception" when input method is …
…changed

Reviewed-by: stuefe
Backport-of: f681d6544ac2506cb72e45c1f9ed8dfbbde099f2
  • Loading branch information
TheRealMDoerr committed Sep 16, 2021
1 parent 0da130e commit 25cad2fea592b47998de0f0bccc4f2d07e57ce64
Showing 2 changed files with 2 additions and 3 deletions.
@@ -115,9 +115,7 @@ + (void) _nativeNotifyPeerWithView:(AWTView *)view inputMethod:(jobject) inputMe
AWT_ASSERT_APPKIT_THREAD;

if (!view) return;
if (!inputMethod) return;

[view setInputMethod:inputMethod]; // inputMethod is a GlobalRef
[view setInputMethod:inputMethod]; // inputMethod is a GlobalRef or null to disable.
}

+ (void) _nativeEndComposition:(AWTView *)view {
@@ -259,6 +259,7 @@ BOOL isSWTInWebStart(JNIEnv* env) {

static void AWT_NSUncaughtExceptionHandler(NSException *exception) {
NSLog(@"Apple AWT Internal Exception: %@", [exception description]);
NSLog(@"trace: %@", [exception callStackSymbols]);
}

@interface AWTStarter : NSObject

1 comment on commit 25cad2f

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 25cad2f Sep 16, 2021

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.