<AWT Dev> RFR: 8248532: Every time I change keyboard language at my MacBook, Java crashes

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Wed Sep 9 13:24:58 UTC 2020

On Wed, 9 Sep 2020 13:12:16 GMT, Phil Race <prr at openjdk.org> wrote:

>> Hi Phil,
>> Is there any more feedback on this PR? If not, can you please approve.
> You still have not resolved my confusion. Please read your own evaluation in the bug report which says you
> will use NSDistributedNotificationCenter.
> Is the evaluation wrong ?

Yes, the evaluation in the bug report was the first shot on this issue, when I did not know that mac code historically
did not use NSDistributedNotificationCenter, rather they use NSNotificationCenter and those did not crash.  So, I
investigated further to find out it's the observer setup which needs to be amened. I will amend it the evaluation in
the bug report. NSDistributedCenter will work but it is more better to use NSNotificationCenter with proper observer
setup which I did in 2nd iteration. Hope this clarifies.


PR: https://git.openjdk.java.net/jdk/pull/28

More information about the awt-dev mailing list