RFR: 8278908: [macOS] Unexpected text normalization on pasting from clipboard

Phil Race prr at openjdk.java.net
Fri Dec 17 19:13:25 UTC 2021


On Thu, 16 Dec 2021 15:53:26 GMT, Dmitry Batrak <dbatrak at openjdk.org> wrote:

> The fix just removes the explicit normalization of text obtained from system clipboard in JDK code, as I've found no
> good justification for such a normalization, at least for the latest macOS version.
> The same fix was performed in JetBrains Runtime by a user's request more than 4 years ago, and we didn't receive any
> related complaints from our users ever since.

I don't know much at all about this code and DnD / clipboard java->java, and java<->native and the differences per platform but I see an update to a test which very deliberately tests the behaviour you are affecting. And that test runs on all platforms but you are only updating macOS .. hmm. I'd like to know why. I'd also like to know that all the scenarios work on all platforms and also why someone previously was so sure the existing code was right ...

-------------

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



More information about the client-libs-dev mailing list