<AWT Dev> RFR: 8257242: [macOS] Java app crashes while switching input methods
Sergey Bylokhov
serb at openjdk.java.net
Mon Nov 30 17:16:54 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.
Marked as reviewed by serb (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/1517
More information about the awt-dev
mailing list