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

Commit 501e942

Browse files
Olga MikhaltsovaDmitry Cherepanov
Olga Mikhaltsova
authored and
Dmitry Cherepanov
committed
8248532: Every time I change keyboard language at my MacBook, Java crashes
Backport-of: 6329de4
1 parent 05ac56a commit 501e942

File tree

1 file changed

+1
-1
lines changed
  • src/java.desktop/macosx/native/libawt_lwawt/awt

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ - (void)setInputMethod:(jobject)inputMethod
13351335

13361336
NSTextInputContext *curContxt = [NSTextInputContext currentInputContext];
13371337
kbdLayout = curContxt.selectedKeyboardInputSource;
1338-
[[NSNotificationCenter defaultCenter] addObserver:self
1338+
[[NSNotificationCenter defaultCenter] addObserver:[AWTView class]
13391339
selector:@selector(keyboardInputSourceChanged:)
13401340
name:NSTextInputContextKeyboardSelectionDidChangeNotification
13411341
object:nil];

0 commit comments

Comments
 (0)