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

Commit 6fb2ac2

Browse files
Olga MikhaltsovaYuri Nesterenko
Olga Mikhaltsova
authored and
Yuri Nesterenko
committed
8248532: Every time I change keyboard language at my MacBook, Java crashes
Backport-of: 6329de45045da3ce937cd22d82e74c3f142ea3f2
1 parent 59f8941 commit 6fb2ac2

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
@@ -1366,7 +1366,7 @@ - (void)setInputMethod:(jobject)inputMethod
13661366

13671367
NSTextInputContext *curContxt = [NSTextInputContext currentInputContext];
13681368
kbdLayout = curContxt.selectedKeyboardInputSource;
1369-
[[NSNotificationCenter defaultCenter] addObserver:self
1369+
[[NSNotificationCenter defaultCenter] addObserver:[AWTView class]
13701370
selector:@selector(keyboardInputSourceChanged:)
13711371
name:NSTextInputContextKeyboardSelectionDidChangeNotification
13721372
object:nil];

0 commit comments

Comments
 (0)