Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit e5ddcb1

Browse files
author
Yuri Nesterenko
committed
8272806: [macOS] "Apple AWT Internal Exception" when input method is changed
Backport-of: f681d6544ac2506cb72e45c1f9ed8dfbbde099f2
1 parent 01f8aff commit e5ddcb1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/java.desktop/macosx/native/libawt_lwawt/awt/CInputMethod.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ + (void) _nativeNotifyPeerWithView:(AWTView *)view inputMethod:(jobject) inputMe
115115
AWT_ASSERT_APPKIT_THREAD;
116116

117117
if (!view) return;
118-
if (!inputMethod) return;
119-
120-
[view setInputMethod:inputMethod]; // inputMethod is a GlobalRef
118+
[view setInputMethod:inputMethod]; // inputMethod is a GlobalRef or null to disable.
121119
}
122120

123121
+ (void) _nativeEndComposition:(AWTView *)view {

src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ BOOL isSWTInWebStart(JNIEnv* env) {
259259

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

264265
@interface AWTStarter : NSObject

0 commit comments

Comments
 (0)