<AWT Dev> Integrated: 8257242: [macOS] Java app crashes while switching input methods
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Tue Dec 1 03:24:55 UTC 2020
On Mon, 30 Nov 2020 13:23:35 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> It seems the patch for https://bugs.openjdk.java.net/browse/JDK-8248532 causes a crash, as it attempts to call a method selector on a class for an instance method (- keyboardInputSourceChanged). It was not observed in 10.14 but seen in 10.15 or later.
> It resulted in crash as we are passing [AWTView class] as an instance to the notification observer but notification function keyboardInputSourceChanged is not a member function.
> Modified the code to make that function a class-level function so that it does not crash.
> mucommander.app, JDK-8214578 testcase worked with this change.
This pull request has now been integrated.
Changeset: 822ee474
Author: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/822ee474
Stats: 8 lines in 2 files changed: 3 ins; 3 del; 2 mod
8257242: [macOS] Java app crashes while switching input methods
Reviewed-by: serb
-------------
PR: https://git.openjdk.java.net/jdk/pull/1517
More information about the awt-dev
mailing list