-
Notifications
You must be signed in to change notification settings - Fork 229
8353950: Clipboard interaction on Windows is unstable #3746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
8353950: Clipboard interaction on Windows is unstable #3746
Conversation
8332271: Reading data from the clipboard from multiple threads crashes the JVM Reviewed-by: abhiscxk, dnguyen
👋 Welcome back mblaesing! A progress list of the required criteria for merging this PR into |
@matthiasblaesing This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 13 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. ➡️ To flag this PR as ready for integration with the above commit message, type |
This backport pull request has now been updated with issues from the original commit. |
|
Webrevs
|
Same testing as for master, jdk25 backport and jdk21 backport were applied:
|
/approval JDK-8353950 request |
/approval JDK-8332271 request |
@matthiasblaesing |
@matthiasblaesing |
Hi @matthiasblaesing |
/approval JDK-8353950 request NetBeans used to have a work around to "fix" flaky clipboard access. That "fix" was installed using a security manager. The removal of the security manager support from the JDK forced the NetBeans IDE to take an alternative approach. It currently relies on an agent to break into the JDK classes and hack the implementation to synchronize access to the clipboard code, which works, but is a really ugly approach. The right way is to actually fix the clipboard which is done in this change. Users indicated, that an unstable clipboard interaction is not acceptable. |
/approval JDK-8332271 request Crashing the VM with regular AWT calls is not acceptable and needs to be fixed. |
@matthiasblaesing |
@matthiasblaesing |
@GoeLin you write:
I'm not sure how to judge that. Reading the timetable on the 17u site last release was two days ago, so could you clarify? |
Hi @matthiasblaesing , |
@GoeLin thanks for the clarification. For NetBeans this make the change unneeded, as by that time JDK 25 will have been released and thus JDK 17 will drop out from the supported JDK range (supported range is current LTS - 1). However from the opensource contribution perspective, I think it is ok and also gives a realistic planning timeframe to drop the workaround needed because of a broken JDK. |
@matthiasblaesing This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
/keepalive |
@matthiasblaesing The pull request is being re-evaluated and the inactivity timeout has been reset. |
Hi @matthiasblaesing |
@GoeLin thank you for the heads-up. I merged master, rebuild my setup and pushed the update here. The new unittest still works and the manual test (NB27 copy-pasting to notepad in a loop) still fails with Amazon Corretto 17.0.16.8.1 and works with the built from this branch. |
Progress
Issues
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3746/head:pull/3746
$ git checkout pull/3746
Update a local copy of the PR:
$ git checkout pull/3746
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3746/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3746
View PR using the GUI difftool:
$ git pr show -t 3746
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3746.diff
Using Webrev
Link to Webrev Comment