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

Backport-of: f681d6544ac2506cb72e45c1f9ed8dfbbde099f2
  • Loading branch information
prrace committed Aug 25, 2021
1 parent 20d00eb commit 71a6aae38d7e7e0aa24264c98b0138808ffd0e8f
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 71a6aae

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 71a6aae Aug 25, 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.