8272806: [macOS] "Apple AWT Internal Exception" when input method is changed

Reviewed-by: serb, dmarkov, azvegint
This commit is contained in:
Phil Race 2021-08-24 15:23:15 +00:00
parent 6e0328f582
commit f681d6544a
2 changed files with 2 additions and 3 deletions

View File

@ -115,9 +115,7 @@ static void initializeInputMethodController() {
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 {

View File

@ -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